|
Eclipse JDT Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ltk.core.refactoring.participants.CheckConditionsContext
A context that is shared between the refactoring processor and all its associated participants during condition checking.
The context manages a set of IConditionChecker
objects to collect
condition checks that should be perform across all participants and the
processor. For example validating if a file can be changed (see
IWorkspace.validateEdit(org.eclipse.core.resources.IFile[], java.lang.Object)
should only be called once for all files modified by the processor and all
participants.
Note: this class is not intended to be extended by clients.
Constructor Summary | |
CheckConditionsContext()
|
Method Summary | |
void |
add(IConditionChecker checker)
Adds the given condition checker. |
RefactoringStatus |
check(IProgressMonitor pm)
Checks the condition of all registered condition checkers and returns a merge status result. |
IConditionChecker |
getChecker(Class clazz)
Returns the condition checker of the given type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CheckConditionsContext()
Method Detail |
public IConditionChecker getChecker(Class clazz)
clazz
- the type of the condition checker
null
if
no checker is registered for the given typepublic void add(IConditionChecker checker) throws CoreException
checker
- the checker to add
CoreException
- if a checker of the same type already
existspublic RefactoringStatus check(IProgressMonitor pm) throws CoreException
pm
- a progress monitor or null
if no progress
reporting is desired
CoreException
- if an error occurs during condition checking
|
Eclipse JDT Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |