Author: adietish
Date: 2011-01-17 09:17:50 -0500 (Mon, 17 Jan 2011)
New Revision: 28298
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/utils/WizardUtils.java
Log:
[JBIDE-8126] close manage keys dialog on double click on a key
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/utils/WizardUtils.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/utils/WizardUtils.java 2011-01-17
13:56:21 UTC (rev 28297)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/utils/WizardUtils.java 2011-01-17
14:17:50 UTC (rev 28298)
@@ -41,7 +41,7 @@
* the invocation target exception
* @throws InterruptedException
* the interrupted exception
- *
+ *
* @author André Dietisheim
*/
public static void runInWizard(final Job job, IWizardContainer container) throws
InvocationTargetException,
@@ -67,16 +67,19 @@
/**
* Flips to the next wizard page or finishes the current wizard.
- *
- * @param wizardPage the wizard page this call is executed in
+ *
+ * @param wizardPage
+ * the wizard page this call is executed in
*/
public static void nextPageOrFinish(IWizardPage wizardPage) {
IWizard wizard = wizardPage.getWizard();
if (wizardPage.canFlipToNextPage()) {
IWizardPage nextPage = wizard.getNextPage(wizardPage);
wizard.getContainer().showPage(nextPage);
- } else if (wizard.canFinish()) {
- wizard.getContainer().getShell().close();
- }
+ } else if (wizard.canFinish()) {
+ if (wizard.performFinish()) {
+ wizard.getContainer().getShell().close();
+ }
+ }
}
}
Show replies by date