Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Rennie2012-02-29 20:05:37 +0000
committerMike Rennie2012-02-29 20:05:37 +0000
commit60c03cad75d982c086bd66d4800ac4ad1559f54a (patch)
tree3eccb41181da21d3f421d0c1b0f6e9ad403f1a81 /org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/ContextRunner.java
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
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/ContextRunner.java')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/ContextRunner.java15
1 files changed, 1 insertions, 14 deletions
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