Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Williams2020-12-04 16:46:14 +0000
committerJonathan Williams2020-12-04 19:37:15 +0000
commit7d64391baffa435f6db634e716da26d5d395a083 (patch)
tree7ba906088f2eab7835e27d3b36a13f6853d39e34
parenta7546a575f84010ec6d8537cf3a65a2c64cc1cea (diff)
downloadorg.eclipse.cdt-7d64391baffa435f6db634e716da26d5d395a083.tar.gz
org.eclipse.cdt-7d64391baffa435f6db634e716da26d5d395a083.tar.xz
org.eclipse.cdt-7d64391baffa435f6db634e716da26d5d395a083.zip
Bug 569479 - Fix ClassCastException with NewLaunchTargetWizard
NewLaunchTargetWizard implements INewWizard so that File > New > Other... > Launch Targets > Launch Target works without exception. Change-Id: I6ffb0a8d601d54fe4d3f781fdbaa342167fff2f0 Signed-off-by: Jonathan Williams <jonwilliams@blackberry.com>
-rw-r--r--launchbar/org.eclipse.launchbar.ui/META-INF/MANIFEST.MF2
-rw-r--r--launchbar/org.eclipse.launchbar.ui/src/org/eclipse/launchbar/ui/internal/target/NewLaunchTargetWizard.java10
2 files changed, 10 insertions, 2 deletions
diff --git a/launchbar/org.eclipse.launchbar.ui/META-INF/MANIFEST.MF b/launchbar/org.eclipse.launchbar.ui/META-INF/MANIFEST.MF
index b5c04486b54..eeffc419f1d 100644
--- a/launchbar/org.eclipse.launchbar.ui/META-INF/MANIFEST.MF
+++ b/launchbar/org.eclipse.launchbar.ui/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.launchbar.ui;singleton:=true
-Bundle-Version: 2.4.0.qualifier
+Bundle-Version: 2.4.100.qualifier
Bundle-Activator: org.eclipse.launchbar.ui.internal.Activator
Bundle-Vendor: %providerName
Require-Bundle: org.eclipse.core.runtime,
diff --git a/launchbar/org.eclipse.launchbar.ui/src/org/eclipse/launchbar/ui/internal/target/NewLaunchTargetWizard.java b/launchbar/org.eclipse.launchbar.ui/src/org/eclipse/launchbar/ui/internal/target/NewLaunchTargetWizard.java
index eaf04caefcb..376c0124583 100644
--- a/launchbar/org.eclipse.launchbar.ui/src/org/eclipse/launchbar/ui/internal/target/NewLaunchTargetWizard.java
+++ b/launchbar/org.eclipse.launchbar.ui/src/org/eclipse/launchbar/ui/internal/target/NewLaunchTargetWizard.java
@@ -13,15 +13,18 @@
*******************************************************************************/
package org.eclipse.launchbar.ui.internal.target;
+import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.wizard.Wizard;
import org.eclipse.launchbar.ui.internal.Messages;
+import org.eclipse.ui.INewWizard;
+import org.eclipse.ui.IWorkbench;
/**
* The new wizard is responsible for allowing the user to choose which new
* (nested) wizard to run. The set of available new wizards comes from the new
* extension point.
*/
-public class NewLaunchTargetWizard extends Wizard {
+public class NewLaunchTargetWizard extends Wizard implements INewWizard {
public NewLaunchTargetWizard() {
setForcePreviousAndNextButtons(true);
@@ -42,4 +45,9 @@ public class NewLaunchTargetWizard extends Wizard {
return false;
}
+ @Override
+ public void init(IWorkbench workbench, IStructuredSelection selection) {
+ // Nothing to do
+ }
+
}

Back to the top