Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2009-11-06 13:15:38 +0000
committerDarin Wright2009-11-06 13:15:38 +0000
commit1d49d5d761127ad2c58a324d9fc0f430b6ee17e9 (patch)
treec5326792105d298235e3544d83b77941b27c1497
parentc931835343e79e4dd8ca11bd7716274468ae3614 (diff)
downloadeclipse.platform.debug-1d49d5d761127ad2c58a324d9fc0f430b6ee17e9.tar.gz
eclipse.platform.debug-1d49d5d761127ad2c58a324d9fc0f430b6ee17e9.tar.xz
eclipse.platform.debug-1d49d5d761127ad2c58a324d9fc0f430b6ee17e9.zip
Bug 41353 - [launching] Launch config templates
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationManager.java15
1 files changed, 10 insertions, 5 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationManager.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationManager.java
index 1ddbe86c2..a99b47815 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationManager.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationManager.java
@@ -30,6 +30,7 @@ import java.util.Set;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.transform.TransformerException;
import org.eclipse.core.expressions.EvaluationContext;
import org.eclipse.core.expressions.IEvaluationContext;
@@ -571,9 +572,13 @@ public class LaunchConfigurationManager implements ILaunchListener, ISavePartici
history.setFavorites(favs);
// add any favorites that have been added to the workspace before this plug-in
// was loaded - @see bug 231600
- ILaunchConfiguration[] configurations = getLaunchManager().getLaunchConfigurations();
- for (int j = 0; j < configurations.length; j++) {
- history.checkFavorites(configurations[j]);
+ try {
+ ILaunchConfiguration[] configurations = getLaunchManager().getLaunchConfigurations(ILaunchConfiguration.CONFIGURATION);
+ for (int j = 0; j < configurations.length; j++) {
+ history.checkFavorites(configurations[j]);
+ }
+ } catch (CoreException e) {
+ DebugUIPlugin.log(e.getStatus());
}
}
}
@@ -1050,8 +1055,8 @@ public class LaunchConfigurationManager implements ILaunchListener, ISavePartici
* @return the singleton instance of the launch manager
* @since 3.3
*/
- private LaunchManager getLaunchManager() {
- return (LaunchManager) DebugPlugin.getDefault().getLaunchManager();
+ private ILaunchManager getLaunchManager() {
+ return DebugPlugin.getDefault().getLaunchManager();
}
/**

Back to the top