/** * Called just before the operation is run. Default behaviour is to open or * create the dialog, based on the setting of <code>getOpenOnRun</code>, * and increment the nesting depth. */ protected void aboutToRun() { if (getOpenOnRun()) { open(); } else { create(); } incrementNestingDepth(); }
/** * Called just before the operation is run. Default behaviour is to open or * create the dialog, based on the setting of <code>getOpenOnRun</code>, * and increment the nesting depth. * * @since 3.0 */ protected void aboutToRun() { if (getOpenOnRun()) { open(); } else { create(); } incrementNestingDepth(); }
/** * Called just before the operation is run. Default behaviour is to open or * create the dialog, based on the setting of <code>getOpenOnRun</code>, * and increment the nesting depth. * * @since 3.0 */ protected void aboutToRun() { if (getOpenOnRun()) { open(); } else { create(); } incrementNestingDepth(); }
public int open() { // Check to be sure it is not already done. If it is just return OK. if (!getOpenOnRun()) { if (getNestingDepth() == 0) { return OK; } } int result = super.open(); // update message label just in case beginTask() has been invoked // already if (task == null || task.length() == 0) setMessage(DEFAULT_TASKNAME, true); else setMessage(task, true); return result; } }
@Override public int open() { // Check to be sure it is not already done. If it is just return OK. if (!getOpenOnRun()) { if (getNestingDepth() == 0) { return OK; } } int result = super.open(); // update message label just in case beginTask() has been invoked // already if (task == null || task.length() == 0) setMessage(DEFAULT_TASKNAME, true); else setMessage(task, true); return result; } }
@Override public int open() { // Check to be sure it is not already done. If it is just return OK. if (!getOpenOnRun()) { if (getNestingDepth() == 0) { return OK; } } int result = super.open(); // update message label just in case beginTask() has been invoked // already if (task == null || task.length() == 0) setMessage(DEFAULT_TASKNAME, true); else setMessage(task, true); return result; } }