Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Rennie2012-02-29 21:38:06 +0000
committerMike Rennie2012-02-29 21:38:06 +0000
commitec2417a329373cf7361749eb006674746f190330 (patch)
treeda31b87d47b4f4c1ada4a1dcaaaa0093202d95ce /org.eclipse.debug.core/core
parent3d89e94ffcffc2d71c03a1001b7baab6de614635 (diff)
downloadeclipse.platform.debug-ec2417a329373cf7361749eb006674746f190330.tar.gz
eclipse.platform.debug-ec2417a329373cf7361749eb006674746f190330.tar.xz
eclipse.platform.debug-ec2417a329373cf7361749eb006674746f190330.zip
Bug 280602 - [launch] Updatev20120229-2138
LaunchConfigurationTabGroupViewer.verifyName() with information about type of configuration
Diffstat (limited to 'org.eclipse.debug.core/core')
-rw-r--r--org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchManager.java20
1 files changed, 19 insertions, 1 deletions
diff --git a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchManager.java b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchManager.java
index 37858a6c2..ecd58992c 100644
--- a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchManager.java
+++ b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchManager.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2011 IBM Corporation and others.
+ * Copyright (c) 2000, 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
@@ -963,6 +963,24 @@ public class LaunchManager extends PlatformObject implements ILaunchManager, IRe
}
/**
+ * Searches for the {@link ILaunchConfiguration} with the given name
+ * @param name the name to search for
+ * @return the {@link ILaunchConfiguration} with the given name or <code>null</code>
+ * @since 3.8
+ */
+ public ILaunchConfiguration findLaunchConfiguration(String name) {
+ if(name != null) {
+ ILaunchConfiguration[] configs = getLaunchConfigurations();
+ for (int i = 0; i < configs.length; i++) {
+ if(name.equals(configs[i].getName())) {
+ return configs[i];
+ }
+ }
+ }
+ return null;
+ }
+
+ /**
* Finds and returns all local launch configurations.
*
* @return all local launch configurations

Back to the top