protected boolean executeTask(WizardFragment fragment, byte type, IProgressMonitor monitor) throws CoreException { if (fragment == null) { return true; } if (type == FINISH) { return fragment.performFinish(monitor); } else if (type == CANCEL) { fragment.performCancel(monitor); } return true; }