Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1510)

Unified Diff: editor/tools/plugins/com.google.dart.tools.debug.ui/src/com/google/dart/tools/debug/ui/internal/util/LaunchUtils.java

Issue 10190008: delete launch configs when project is deleted (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.google.dart.tools.debug.ui/src/com/google/dart/tools/debug/ui/internal/util/LaunchUtils.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.debug.ui/src/com/google/dart/tools/debug/ui/internal/util/LaunchUtils.java (revision 6890)
+++ editor/tools/plugins/com.google.dart.tools.debug.ui/src/com/google/dart/tools/debug/ui/internal/util/LaunchUtils.java (working copy)
@@ -195,6 +195,30 @@
}
+ public static List<ILaunchConfiguration> getLaunchesFor(IProject project) {
+ List<ILaunchConfiguration> launches = new ArrayList<ILaunchConfiguration>();
+
+ for (ILaunchConfiguration config : LaunchUtils.getAllLaunches()) {
+ try {
+ if (config.getMappedResources() == null) {
+ continue;
+ }
+
+ for (IResource resource : config.getMappedResources()) {
+ if (project.equals(resource.getProject())) {
+ if (!launches.contains(config)) {
+ launches.add(config);
+ }
+ }
+ }
+ } catch (CoreException exception) {
+ DartUtil.logError(exception);
+ }
+ }
+
+ return launches;
+ }
+
/**
* Return the best launch configuration to run for the given resource.
*
@@ -336,30 +360,6 @@
return new ArrayList<ILaunchConfiguration>(configs);
}
- private static List<ILaunchConfiguration> getLaunchesFor(IProject project) {
- List<ILaunchConfiguration> launches = new ArrayList<ILaunchConfiguration>();
-
- for (ILaunchConfiguration config : LaunchUtils.getAllLaunches()) {
- try {
- if (config.getMappedResources() == null) {
- continue;
- }
-
- for (IResource resource : config.getMappedResources()) {
- if (project.equals(resource.getProject())) {
- if (!launches.contains(config)) {
- launches.add(config);
- }
- }
- }
- } catch (CoreException exception) {
- DartUtil.logError(exception);
- }
- }
-
- return launches;
- }
-
private LaunchUtils() {
}

Powered by Google App Engine
This is Rietveld 408576698