Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.debug.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