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

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/DartUIStartup.java

Issue 10636061: Fix for issue 3838, the exit on the -kill-after-perf now exits in an Eclipse workbench friendly man… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/DartUIStartup.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/DartUIStartup.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/DartUIStartup.java
index e13193f50b8b90334ee7e8d9aa2cbe6832fa29d7..d7a7f8692b0f3d5af304fc668b850b52b98e40d8 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/DartUIStartup.java
+++ b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/DartUIStartup.java
@@ -206,7 +206,13 @@ public class DartUIStartup implements IStartup {
Performance.TIME_TO_INDEX_COMPLETE.log(DartEditorCommandLineManager.getStartTime());
Performance.printResults_keyValue();
if (DartEditorCommandLineManager.KILL_AFTER_PERF) {
- System.exit(0);
+ // From the UI thread, call PlatformUI.getWorkbench().close() to exit the Dart Editor
+ Display.getDefault().syncExec(new Runnable() {
+ @Override
+ public void run() {
+ PlatformUI.getWorkbench().close();
+ }
+ });
}
}
});
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698