Class ResourceChangeChecker
java.lang.Object
org.eclipse.ltk.core.refactoring.participants.ResourceChangeChecker
- All Implemented Interfaces:
IConditionChecker
A resource operation checker is a shared checker to collect all
changes done by the refactoring and the participants to resources
so that they can be validated as one change. A resource operation
checker supersedes the
ValidateEditChecker
. So if clients
add their content changes to this checker there is no need to add
them to the ValidateEditChecker
as well.
Note: this class is not intended to be extended by clients.
- Since:
- 3.2
- See Also:
- Restriction:
- This class is not intended to be subclassed by clients.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncheck
(IProgressMonitor monitor) Performs the actual condition checking.static RefactoringStatus
checkFilesToBeChanged
(IFile[] files, IProgressMonitor monitor) A helper method to check a set of changed files.Returns the delta factory to be used to record resource operations.
-
Constructor Details
-
ResourceChangeChecker
public ResourceChangeChecker()
-
-
Method Details
-
checkFilesToBeChanged
public static RefactoringStatus checkFilesToBeChanged(IFile[] files, IProgressMonitor monitor) throws CoreException A helper method to check a set of changed files.- Parameters:
files
- the array of files that changemonitor
- a progress monitor to report progress ornull
if progress reporting is not desired- Returns:
- a refactoring status containing the detect problems
- Throws:
CoreException
- aCoreException
if an error occurs- See Also:
-
getDeltaFactory
Returns the delta factory to be used to record resource operations.- Returns:
- the delta factory
-
check
Description copied from interface:IConditionChecker
Performs the actual condition checking.- Specified by:
check
in interfaceIConditionChecker
- Parameters:
monitor
- a progress monitor to report progress- Returns:
- the outcome of the condition check
- Throws:
CoreException
- if an error occurred during condition checking. The check is interpreted as failed if this happens
-