| gui.participants.FieldModelChange
FieldModelChange | public class FieldModelChange extends Change (Code) | | This change class is responsible for updating the environment
entries in the model. It checks if the type containing
this field is an element in the model. If so it checks
if the element contains this field as environment entry.
It also returns the undo operations for this modification.
author: sh |
FieldModelChange | public FieldModelChange(Object selection, RenameArguments arguments)(Code) | | Constructor
Parameters: selection - the element to refacter Parameters: arguments - the input data of the refactoring dialog |
getModifiedElement | public Object getModifiedElement()(Code) | | Returns the element modified by this Change . The method may return
null if the change isn't related to an element.
the element modified by this change |
initializeValidationData | public void initializeValidationData(IProgressMonitor pm)(Code) | | |
isValid | public RefactoringStatus isValid(IProgressMonitor pm) throws CoreException, OperationCanceledException(Code) | | |
perform | public Change perform(IProgressMonitor pm) throws CoreException(Code) | | Performs this change after the method isValid has been called. If isValid
returns an fatal error or the change is disabled this change will not be performed.
Changes should in general not respond to
IProgressMonitor.isCanceled
since canceling a change tree in the middle of its execution leaves the workspace
in a half changed state.
Parameters: pm - a progress monitor the undo change for this change object or null if noundo is provided throws: CoreException - if an error occurred during change execution |
|
|