@Override public boolean close() { alreadyClosed = true;//As this sometimes delayed cache if it was already closed boolean result = super.close(); if (!result) {//If it fails reset the flag alreadyClosed = false; } return result; }
/** * Called just after the operation is run. Default behaviour is to decrement * the nesting depth, and close the dialog. * * @since 3.0 */ protected void finishedRun() { decrementNestingDepth(); close(); }
/** * Called just after the operation is run. Default behaviour is to decrement * the nesting depth, and close the dialog. * * @since 3.0 */ protected void finishedRun() { decrementNestingDepth(); close(); }
/** * Called just after the operation is run. Default behaviour is to decrement * the nesting depth, and close the dialog. */ protected void finishedRun() { decrementNestingDepth(); close(); }
dialog.close(); } catch (Exception ex) { Trace.trace(Trace.SEVERE, "Error finding runtimes", ex);
/** * Saves the specified editors */ private void saveItems(TableItem items[]) { if (items.length == 0) { return; } ProgressMonitorDialog pmd = new ProgressMonitorJobsDialog(getShell()); pmd.open(); for (TableItem item : items) { Adapter editor = (Adapter) item.getData(); editor.save(pmd.getProgressMonitor()); updateItem(item, editor); } pmd.close(); updateItems(); }