IModelRefactoring.java :  » Workflow-Engines » osbl-1_0 » core » Java Open Source

Java Open Source » Workflow Engines » osbl 1_0 
osbl 1_0 » core » IModelRefactoring.java
package core;

import org.eclipse.jdt.core.IJavaElement;

/**
 * All model refactorings do some modifications
 * on the model.
 *  
 * @author sh
 *
 */
public interface IModelRefactoring {
  
  /**
   * Does the modification on the given model element.
   *
   * @param sourceElement the source element to modify
   */
  public void modification(IJavaElement sourceElement);
  
  /**
   * Searchs for the implementation and starts the
   * update on the model
   *   
   * @param modelElement the model element to update
   */
  public void updateModel(IJavaElement modelElement);
  
  /**
   * Starts the refactoring process.
   * It invokes updateModel call.
   * 
   * @param info the info object containing all important 
   *         information for refactoring
   */
  public void process(RefactorInfo info);
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.