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); |