| java.lang.Object org.netbeans.modules.xml.refactoring.spi.ChangeExecutor
ChangeExecutor | abstract public class ChangeExecutor (Code) | | Executor of a refactor target change.
A refactoring request processing consist of 2 steps:
(1) making the change on the target component,
(2) refactoring selected the usage components.
The implementation of this class is reponsible for the first step.
author: Nam Nguyen |
Method Summary | |
abstract public boolean | canChange(Class<T> changeType, Referenceable target) | public void | doChange(AbstractRefactoring request) Perform the change specified by the refactor request. | public UIHelper | getUIHelper() Returns UI helper in displaying the usages. | public void | precheck(AbstractRefactoring request) Perform a pre-change checking on the refactor request. |
doChange | public void doChange(AbstractRefactoring request) throws IOException(Code) | | Perform the change specified by the refactor request. Any errors that would
fail the overall refactoring should be reported throught #RefactoringRequest.addError
Implementation should quietly ignore unsupported refactoring type.
|
getUIHelper | public UIHelper getUIHelper()(Code) | | Returns UI helper in displaying the usages. Implementation could override
the default UI to help display usages in a more intuitive way than the
generic helper.
|
precheck | public void precheck(AbstractRefactoring request)(Code) | | Perform a pre-change checking on the refactor request.
Implementation should quietly ignore unsupported refactoring type.
|
|
|