public class SaveDirtyFilesUtility extends ValidateEditTransformUtility
addAffectedFiles()
methods. These (static) methods can be called
multiple times to add files to the set of affected files maintained by the
rule. The list of files is stored in the context.CODE_OTHER, CODE_PROPERTY, CODE_SOURCE, CODE_TARGET, CODE_TARGET_CONTAINER
Constructor and Description |
---|
SaveDirtyFilesUtility(ITransformUtilityDescriptor descriptor) |
Modifier and Type | Method and Description |
---|---|
void |
doExecute(ITransformContext context)
The specific task that this TransformUtility performs based on the data
contained within the execution context.
|
protected void |
verifySaveDirtyFilesStatus(ITransformContext context,
java.util.Set<org.eclipse.ui.IEditorPart> dirtyEditors)
This method will prompt user to save dirty resources before transformation can continue.
|
addAffectedFile, addAffectedFiles, canAccept, getAffectedFiles, reportError
createContext, execute, getWorkUnitsPropertyId, handle, internalExecute, setPropertyInContext, validateContext
getProgressMonitorWorkUnits, getTransformationDescriptor
getAcceptCondition, getDescription, getId, getName, getProgressMonitor, setAcceptCondition, setDescription, setId, setName
public SaveDirtyFilesUtility(ITransformUtilityDescriptor descriptor)
public void doExecute(ITransformContext context) throws java.lang.Exception
TransformUtility
doExecute
in class ValidateEditTransformUtility
context
- The execution context.java.lang.Exception
protected void verifySaveDirtyFilesStatus(ITransformContext context, java.util.Set<org.eclipse.ui.IEditorPart> dirtyEditors)
context
- dirtyEditors
-