代码注释样例----不断更新

 /*******************************************************************************
 * Copyright (c) 2000, 2005  **zeo.add**  Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Public License
 *
 * Contributors:
 *     **zeo.add**   Corporation - initial API and implementation
 *******************************************************************************/
package com.zeoadd.graphics.editor.ui;

import java.io.IOException; 
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;

import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.resource.Resource;

import com.zeoadd.provider.ItemProviderAdapterFactory;
import com.zeoadd.common.provider.CommonItemProviderAdapterFactory;


/*******************************************************************************
 *
 * @name CodeRegulation
 *
 * @function Code Regulation Example
 *
 * @description 1.package Regulation Example
 *                         2.import Regulation Example
 *                         3.class Regulation Example
 *                         4.function Regulation Example
 *                         5.variable Regulation Example
 *
 * @company **zeo.add**  Corporation
 *
 * @see java.util.ArrayList
 *
 * @author zeo
 *
 * @createDate 2000-01-01
 *
 * @JDKversion 1.6
 *
 * @since 2000-01-01
 *
 * @version 1.0
 *
 *******************************************************************************/
public class CodeRegulation extends GraphicalEditorWithFlyoutPalette
{
 
 /**
  * DOCK_LOCATION
  */
    public static final String DOCK_LOCATION = "dock_location";

 /**
  * DOCK_LOCATION
  */
    protected static final String DOCK_LOCATION = "dock_location";
   
 /**
  * AdapterFactory
  */
 private ComposedAdapterFactory adapterFactory;
   
    /**
     *  Constructor for CodeRegulation
     */
    public CodeRegulation()
    {
     
        setEditDomain(new DefaultEditDomain(this));
  
    }
   
    /**
     * @name codeRegulation
     *
     * @function
     *
     * @description
     *
     * @param codeRegulationOne
     *
     * @param codeRegulationTwo
     *
     * @return String
     */
    public String codeRegulation(String codeRegulationOne,String codeRegulationTwo)
    {
     
     if(log.isDebugEnabled())
     {
      
         log.debug("codeRegulation.java, method enter!");
        
     }
     
     return getGraphicalString();;
     
     if(log.isDebugEnabled())
     {
      
         log.debug("codeRegulation.java, method leave!");
        
     }
     
    }

    /*
     * (non-Javadoc)
     * @see org.eclipse.gef.ui.parts.GraphicalEditor#configureGraphicalViewer()
     */
    @Override
 protected void configureGraphicalViewer()
    {
     
        super.configureGraphicalViewer();
       
    }
   
 /**
  * adapterFactory get method
  */
 public ComposedAdapterFactory getAdapterFactory()
 {
  
  return adapterFactory;
  
 }

 /**
  * adapterFactory set method
  */
 public void setAdapterFactory(ComposedAdapterFactory adapterFactory)
 {
  
  this.adapterFactory = adapterFactory;
  
 }
 
}

你可能感兴趣的:(代码注释样例----不断更新)