01: package core;
02:
03: import org.eclipse.jdt.core.IJavaElement;
04:
05: /**
06: * All model refactorings do some modifications
07: * on the model.
08: *
09: * @author sh
10: *
11: */
12: public interface IModelRefactoring {
13:
14: /**
15: * Does the modification on the given model element.
16: *
17: * @param sourceElement the source element to modify
18: */
19: public void modification(IJavaElement sourceElement);
20:
21: /**
22: * Searchs for the implementation and starts the
23: * update on the model
24: *
25: * @param modelElement the model element to update
26: */
27: public void updateModel(IJavaElement modelElement);
28:
29: /**
30: * Starts the refactoring process.
31: * It invokes updateModel call.
32: *
33: * @param info the info object containing all important
34: * information for refactoring
35: */
36: public void process(RefactorInfo info);
37: }
|