summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2012-03-09 17:52:31 (EST)
committerSteffen Pingel2012-03-09 17:52:31 (EST)
commit62311677c1fccc58d0292532b5c11e8914cdc3e3 (patch)
tree061a03cf1d35eea6353f4fb17e73a6dcee382d1b
parentd6a40baed09969d7a5aa9db48851dc9618612bf2 (diff)
downloadorg.eclipse.mylyn.commons-62311677c1fccc58d0292532b5c11e8914cdc3e3.zip
org.eclipse.mylyn.commons-62311677c1fccc58d0292532b5c11e8914cdc3e3.tar.gz
org.eclipse.mylyn.commons-62311677c1fccc58d0292532b5c11e8914cdc3e3.tar.bz2
ASSIGNED - bug 370331: [api] automatically validate when pressing finish
on repository setting page https://bugs.eclipse.org/bugs/show_bug.cgi?id=370331 Change-Id: I7e7058c81d25f12eb2520d07947e505628e87474
-rw-r--r--org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/commons/ui/dialogs/EnhancedWizardDialog.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/commons/ui/dialogs/EnhancedWizardDialog.java b/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/commons/ui/dialogs/EnhancedWizardDialog.java
index fedd5a9..0cfe57e 100644
--- a/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/commons/ui/dialogs/EnhancedWizardDialog.java
+++ b/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/commons/ui/dialogs/EnhancedWizardDialog.java
@@ -36,6 +36,8 @@ import org.eclipse.swt.widgets.Shell;
*/
public abstract class EnhancedWizardDialog extends WizardDialog {
+ private boolean isInFinish;
+
public EnhancedWizardDialog(Shell parentShell, IWizard newWizard) {
super(parentShell, newWizard);
}
@@ -97,6 +99,20 @@ public abstract class EnhancedWizardDialog extends WizardDialog {
}
@Override
+ protected void finishPressed() {
+ // ignore recursive calls
+ if (isInFinish) {
+ return;
+ }
+ try {
+ isInFinish = true;
+ super.finishPressed();
+ } finally {
+ isInFinish = false;
+ }
+ }
+
+ @Override
public void updateButtons() {
updateExtraButtons();
super.updateButtons();