Package com.iizigo.project.refactor
Interface ICommitRefactoring
public interface ICommitRefactoring
Interface used to listen to Refactoring Commit events for Module projects.- Author:
- Christopher Mindus
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onCommitRefactoring(int bitValue)
Called when a Commit Refactoring is performed.
Method Detail
onCommitRefactoring
void onCommitRefactoring(int bitValue)
Called when a Commit Refactoring is performed.To check if a certain action has been performed for the requested operation, call
ProjectManager.RefactoringOperation.hasBeenPerformed(bitValue)
.To check if any action of a certain group has been performed for the requested operation, call
ProjectManager.RefactoringGroup.hasBeenPerformed(bitValue)
.When this method is called, the current thread is the SWT thread and no particular workspace or resource locks are held. Do not run lengthy processes here, this method is called quite often and should complete VERY quickly. If a lengthy task is required, spawn it off using a Job.
There are two groups of
RefactoringOperation
, first one related to properties, and the second to resources. The list is as follows:- PROPERTY_ADDED - property added,
- PROPERTY_RENAMED - property renamed,
- PROPERTY_REMOVED - property removed,
- CONTAINER_ADDED - container added,
- CONTAINER_RENAMED - container renamed,
- CONTAINER_REMOVED - container removed,
- FILE_ADDED - file added,
- FILE_RENAMED - file renamed,
- FILE_CHANGED - file changed (contents, markers, etc).
- FILE_REMOVED - file removed,
- FOLDER_ADDED - folder added,
- FOLDER_RENAMED - folder renamed,
- FOLDER_REMOVED - folder removed,
- PROJECT_OPEN - project open (always fired at project rename),
- PROJECT_CLOSE - project close (always fired at project rename),
- PROJECT_RENAME - project rename.
- PROJECT_SETTINGS_CHANGE - project settings changed, e.g. Java source folder path(s).
- Parameters:
bitValue
- The bit value.