Community
Participate
Working Groups
newState[0] = CANCELED;
Display.getDefault().syncExec(new Runnable() {
public void run() {
if (fPageBook.isDisposed())
return;
// we need to register the saveable if we had a previous input or if
// there are knownSaveables (which means that the workbench called
// getSaveables and got an empty list
if (monitor.isCanceled() || fPageBook.isDisposed())
if (hadPreviousInput || (knownSaveables != null && !isAllSaveablesKnown())) {
registerSaveable();
}
closeEditor();
} else if (fControl == null && getState() != CREATING_CONTROL) {
if (getState() == CANCELED) {
// Close the editor when we are canceled, even when compare
// result has been already prepared
// Set the state in case this method gets called again
setState(CREATING_CONTROL);
if (getSite().getSelectionProvider() == null)