01: package core;
02:
03: import org.eclipse.jdt.core.IJavaElement;
04:
05: /**
06: * All code refactorings do some modifications
07: * in the surce code.
08: *
09: * @author sh
10: *
11: */
12: public interface ICodeRefactoring {
13: /**
14: * Takes a compilation unit and modifies its its content.
15: *
16: * @param modelElement the model element to refactor
17: */
18: public void updateSource(IJavaElement modelElement);
19:
20: /**
21: * Starts the refactoring process.
22: * It invokes the code refactoring.
23: *
24: * @param info the info object containing all important
25: * information of the source
26: */
27: public void process(RefactorInfo info);
28:
29: /**
30: * Starts the refactoring process.
31: * It invokes the code refactoring.
32: *
33: * @param info the info object containing all important
34: * information of the model
35: */
36: public void process(ModelInfo info);
37: }
|