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

Unified Diff: editor/tools/plugins/com.google.dart.tools.debug.ui/src/com/google/dart/tools/debug/ui/launch/DartRunLastAction.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/launch/DartRunLastAction.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.debug.ui/src/com/google/dart/tools/debug/ui/launch/DartRunLastAction.java (revision 15120)
+++ editor/tools/plugins/com.google.dart.tools.debug.ui/src/com/google/dart/tools/debug/ui/launch/DartRunLastAction.java (working copy)
@@ -26,9 +26,9 @@
import java.util.List;
/**
- * Launches the last application to have run
+ * Launches the last application to have run.
*/
-public class DartRunLastAction extends DartAbstractAction {
+public class DartRunLastAction extends DartRunAbstractAction {
public DartRunLastAction() {
this(null, false);
@@ -52,16 +52,14 @@
@Override
public void run() {
try {
-
List<ILaunchConfiguration> launches = LaunchUtils.getAllLaunches();
if (launches.size() != 0) {
-
ILaunchConfiguration launchConfig = LaunchUtils.chooseLatest(launches);
+
if (launchConfig != null) {
launch(launchConfig);
}
-
}
} catch (Throwable exception) {
// We need to defensively show all errors coming out of here - the user needs feedback as

Powered by Google App Engine
This is Rietveld 408576698