| core.IRefactoring
All known Subclasses: refactor.RenamePackageFragment,
IRefactoring | public interface IRefactoring (Code) | | Each kind of refactoring consists of three parts.
The first part does the modification on the target element.
The second part eventually updates concerning compilation units.
The last part does the update on the model
author: sh |
Method Summary | |
public void | modification(IJavaElement modelElement) Does the modification on the given model element. | public void | process(RefactorInfo info) Starts the refactoring process. | public void | updateModel(IJavaElement modelElement) Scans all model files in the workspace and starts the updating
process. | public void | updateSource(IJavaElement modelElement) Scans all source files in the workspace and checks
if modifications are needed to do. |
modification | public void modification(IJavaElement modelElement)(Code) | | Does the modification on the given model element.
Parameters: modelElement - the model element to modify |
process | public void process(RefactorInfo info)(Code) | | Starts the refactoring process.
It invokes the modification, updateSource and
updateModel call.
Parameters: info - the info object containing all important information for refactoring |
updateModel | public void updateModel(IJavaElement modelElement)(Code) | | Scans all model files in the workspace and starts the updating
process.
Parameters: modelElement - the model element to update |
updateSource | public void updateSource(IJavaElement modelElement)(Code) | | Scans all source files in the workspace and checks
if modifications are needed to do.
Parameters: modelElement - the model element has been refactered |
|
|