Package org.eclipse.ltk.core.refactoring
Interface IValidationCheckResultQuery
-
public interface IValidationCheckResultQueryA query interface to decide if a undo change whose validation check returned a status unequalRefactoringStatus.OKshould be executed or not.Clients should be aware that the methods defined by this interface can be called from a non UI thread.
The interface may be implemented by clients.
- Since:
- 3.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanproceed(RefactoringStatus status)Returns whether the undo proceeds or not.voidstopped(RefactoringStatus status)Called when the validation check returned a fatal error.
-
-
-
Method Detail
-
proceed
boolean proceed(RefactoringStatus status)
Returns whether the undo proceeds or not. This method is called if the validation check returned a status greater thanOKand less thanFATAL.- Parameters:
status- the refactoring status returned fromChange.isValid(IProgressMonitor)- Returns:
trueif the undo should proceed;falseotherwise
-
stopped
void stopped(RefactoringStatus status)
Called when the validation check returned a fatal error. In this case the undo can't proceed. The hook can be used to present a corresponding dialog to the user.- Parameters:
status- the refactoring status returned fromChange.isValid(IProgressMonitor)
-
-