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

Unified Diff: editor/tools/plugins/com.google.dart.tools.debug.ui/src/com/google/dart/tools/debug/ui/launch/DartRunAction.java

Issue 10270017: changed Run behavior http://code.google.com/p/dart/issues/detail?id=2730, (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/launch/DartRunAction.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.debug.ui/src/com/google/dart/tools/debug/ui/launch/DartRunAction.java (revision 7163)
+++ editor/tools/plugins/com.google.dart.tools.debug.ui/src/com/google/dart/tools/debug/ui/launch/DartRunAction.java (working copy)
@@ -96,9 +96,10 @@
} else {
List<ILaunchShortcut> candidates = LaunchUtils.getApplicableLaunchShortcuts(resource);
- if (candidates.size() == 0) {
- MessageDialog.openInformation(getWindow().getShell(), "Unable to Run", "Unable to run "
- + resource.getName() + ". Please choose a file in a library with a main() function.");
+ if (candidates.size() == 0) { // selection is neither a server of browser app
devoncarew 2012/04/30 21:16:32 or
+
+ DartRunLastAction runLastAction = new DartRunLastAction();
+ runLastAction.run();
} else {
ISelection sel = new StructuredSelection(resource);

Powered by Google App Engine
This is Rietveld 408576698