Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Rennie2012-02-29 15:05:37 -0500
committerMike Rennie2012-02-29 15:05:37 -0500
commit60c03cad75d982c086bd66d4800ac4ad1559f54a (patch)
tree3eccb41181da21d3f421d0c1b0f6e9ad403f1a81
parentf23089dda0f61e08dae1f2924dfb85322c3f92f8 (diff)
downloadeclipse.platform.debug-60c03cad75d982c086bd66d4800ac4ad1559f54a.tar.gz
eclipse.platform.debug-60c03cad75d982c086bd66d4800ac4ad1559f54a.tar.xz
eclipse.platform.debug-60c03cad75d982c086bd66d4800ac4ad1559f54a.zip
Bug 274124 - [launch] Dead code in ContextRunner
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/ContextMessages.java3
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/ContextMessages.properties3
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/ContextRunner.java15
3 files changed, 3 insertions, 18 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/ContextMessages.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/ContextMessages.java
index 68f483862..5bd265abc 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/ContextMessages.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/ContextMessages.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2009 IBM Corporation and others.
+ * Copyright (c) 2007, 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -24,7 +24,6 @@ public class ContextMessages extends NLS {
public static String ContextRunner_13;
public static String ContextRunner_14;
public static String ContextRunner_15;
- public static String ContextRunner_2;
public static String ContextRunner_3;
public static String ContextRunner_7;
public static String LaunchingResourceManager_0;
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/ContextMessages.properties b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/ContextMessages.properties
index ad1b9f9c5..ba7ddcb4d 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/ContextMessages.properties
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/ContextMessages.properties
@@ -1,5 +1,5 @@
###############################################################################
-# Copyright (c) 2007, 2009 IBM Corporation and others.
+# Copyright (c) 2007, 2012 IBM Corporation and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
@@ -10,7 +10,6 @@
###############################################################################
ContextRunner_0=Unable To Launch
ContextRunner_7=The selection cannot be launched, and there are no recent launches.
-ContextRunner_2=The selection does not support {0} mode.
ContextRunner_3=Launch configuration ''{0}'' does not support {1} mode.
ContextRunner_13=The resource ''{0}'' is not accessible for launching
ContextRunner_14=As...
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/ContextRunner.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/ContextRunner.java
index 7576cf287..de1866407 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/ContextRunner.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/ContextRunner.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2011 IBM Corporation and others.
+ * Copyright (c) 2007, 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -145,19 +145,6 @@ public final class ContextRunner {
if(!launchLast(group)) {
MessageDialog.openInformation(DebugUIPlugin.getShell(), ContextMessages.ContextRunner_0, ContextMessages.ContextRunner_7);
}
- }
- else if (shortcuts.size() > 0) {
- // there are shortcuts, but not applicable to the selected mode
- ILaunchMode launchMode = DebugPlugin.getDefault().getLaunchManager().getLaunchMode(mode);
- if (launchMode == null) {
- DebugUIPlugin.logErrorMessage("Unsupported launch mode: " + mode); //$NON-NLS-1$
- } else {
- String label = launchMode.getLabel();
- String modeLabel = DebugUIPlugin.removeAccelerators(label);
- MessageDialog.openInformation(DebugUIPlugin.getShell(),
- MessageFormat.format(ContextMessages.ContextRunner_1, new String[]{modeLabel}),
- MessageFormat.format(ContextMessages.ContextRunner_2, new String[]{modeLabel.toLowerCase()}));
- }
} else {
if(resource != null) {
IProject project = resource.getProject();

Back to the top