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

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

Issue 11420080: Several UI improvements to launching and the manage launches dialog. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 15120)
+++ editor/tools/plugins/com.google.dart.tools.debug.ui/src/com/google/dart/tools/debug/ui/internal/util/LaunchUtils.java (working copy)
@@ -345,6 +345,19 @@
return null;
}
+ /**
+ * @return a user-consumable long name for the launch config, like "foo.html from foo"
+ */
+ public static String getLongLaunchName(ILaunchConfiguration config) {
+ DartLaunchConfigWrapper wrapper = new DartLaunchConfigWrapper(config);
+
+ if (wrapper.getProject() != null) {
+ return config.getName() + " from " + wrapper.getProject().getName();
+ } else {
+ return config.getName();
+ }
+ }
+
public static IResource getSelectedResource(IWorkbenchWindow window) {
IWorkbenchPage page = window.getActivePage();

Powered by Google App Engine
This is Rietveld 408576698