Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Eclipse JDT Release 3.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.eclipse.ltk.core.refactoring
Interface IValidationCheckResultQuery

public interface IValidationCheckResultQuery

A query interface to decide if a undo change whose validation check returned a status unequal `RefactoringStatus.OK` should 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
`boolean` | `proceed(RefactoringStatus status)` Returns whether the undo proceeds or not.
`void` | `stopped(RefactoringStatus status)` Called when the validation check returned a fatal error.

Method Detail

### proceed

    public boolean proceed(RefactoringStatus status)

  Returns whether the undo proceeds or not. This method is called if the validation check returned a status greater than `OK` and less than `FATAL`.

  Parameters:
    `status` - the refactoring status returned from `Change.isValid(IProgressMonitor)`
  Returns:
    `true` if the undo should proceed; `false` otherwise

### stopped

    public 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 from `Change.isValid(IProgressMonitor)`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Eclipse JDT Release 3.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright (c) IBM Corp. and others 2000, 2004. All Rights Reserved.