Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/PDELauncherFormEditor.java')
-rw-r--r--ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/PDELauncherFormEditor.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/PDELauncherFormEditor.java b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/PDELauncherFormEditor.java
index 9467815b8b..5e1bbfe7f8 100644
--- a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/PDELauncherFormEditor.java
+++ b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/PDELauncherFormEditor.java
@@ -84,6 +84,7 @@ public abstract class PDELauncherFormEditor extends MultiSourceEditor {
LauncherAction[] result = new LauncherAction[elements.length];
for (int i = 0; i < elements.length; i++) {
LauncherAction thisAction = new LauncherAction(elements[i]) {
+ @Override
public void run() {
doSave(null);
String id = getConfigurationElement().getAttribute("id"); //$NON-NLS-1$
@@ -120,7 +121,8 @@ public abstract class PDELauncherFormEditor extends MultiSourceEditor {
try {
ILaunchShortcut shortcut = (ILaunchShortcut) elements[i].createExecutableExtension("class"); //$NON-NLS-1$
preLaunch.run();
- shortcut.launch(new StructuredSelection(launchObject), mode);
+ StructuredSelection selection = launchObject != null ? new StructuredSelection(launchObject) : StructuredSelection.EMPTY;
+ shortcut.launch(selection, mode);
} catch (CoreException e1) {
}
}

Back to the top