| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public boolean isCancellable() { |
| | | return false; // TODO: have installer delete installed files upon cancel |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public UserData createUserData() { |
| | | UserData ud = new UserData(); |
| | | ud.setServerLocation(Utils.getDefaultServerLocation()); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public boolean canClose(WizardStep step) { |
| | | return step == PROGRESS; |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public boolean canCancel(WizardStep step) { |
| | | return false; |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public boolean isSubStep(WizardStep step) |
| | | { |
| | | return SUBSTEPS.contains(step); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public void cancelClicked(WizardStep cStep, QuickSetup qs) { |
| | | // do nothing; |
| | | public void cancel() { |
| | | // do nothing; not cancellable |
| | | } |
| | | |
| | | /** |
| | |
| | | if (step == REVIEW) { |
| | | dlg.setFocusOnButton(ButtonName.FINISH); |
| | | dlg.setDefaultButton(ButtonName.FINISH); |
| | | } else if (step == PROGRESS) { |
| | | dlg.setDefaultButton(ButtonName.CLOSE); |
| | | } else if (step == WELCOME) { |
| | | dlg.setDefaultButton(ButtonName.NEXT); |
| | | dlg.setFocusOnButton(ButtonName.NEXT); |
| | | } else if (step == REVIEW) { |
| | | dlg.setDefaultButton(ButtonName.NEXT); |
| | | } else if (step == PROGRESS) { |
| | | dlg.setFocusOnButton(ButtonName.CLOSE); |
| | | dlg.setButtonEnabled(ButtonName.CLOSE, false); |
| | | } else { |
| | | dlg.setDefaultButton(ButtonName.NEXT); |
| | | } |