Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/LaunchWizardDialog.java')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/LaunchWizardDialog.java55
1 files changed, 55 insertions, 0 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/LaunchWizardDialog.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/LaunchWizardDialog.java
new file mode 100644
index 000000000..fa6e3851b
--- /dev/null
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/LaunchWizardDialog.java
@@ -0,0 +1,55 @@
+package org.eclipse.debug.internal.ui;
+
+/*
+ * Licensed Materials - Property of IBM,
+ * WebSphere Studio Workbench
+ * (c) Copyright IBM Corp 2000
+ */
+
+import java.lang.reflect.InvocationTargetException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.jface.operation.IRunnableWithProgress;
+import org.eclipse.jface.wizard.WizardDialog;
+import org.eclipse.swt.widgets.Shell;
+
+/**
+ * Subclassed to provide access to button presses
+ */
+public class LaunchWizardDialog extends WizardDialog {
+
+ protected LaunchWizard fWizard;
+
+ /**
+ * Constructs a wizard dialog
+ */
+ public LaunchWizardDialog(Shell shell, LaunchWizard w) {
+ super(shell, w);
+ fWizard= w;
+ }
+
+ /**
+ * Only needed for VAJ support as cannot use <code>LaunchWizard.super.nextPressed()</code>
+ * in the runnable
+ */
+ private void nextPressed0() {
+ super.nextPressed();
+ }
+
+ protected void cancelPressed() {
+ fWizard.performCancel();
+ super.cancelPressed();
+ }
+
+ protected void nextPressed() {
+ try {
+ run(false, false, new IRunnableWithProgress() {
+ public void run(IProgressMonitor pm) {
+ nextPressed0();
+ }
+ });
+ } catch (InterruptedException ie) {
+ } catch (InvocationTargetException ite) {
+ }
+ }
+}
+

Back to the top