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

Unified Diff: editor/tools/plugins/com.google.dart.tools.deploy/src/com/google/dart/tools/deploy/ApplicationWorkbenchAdvisor.java

Issue 10960002: "No SDK, No Problem!" (take 2) (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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.deploy/src/com/google/dart/tools/deploy/ApplicationWorkbenchAdvisor.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.deploy/src/com/google/dart/tools/deploy/ApplicationWorkbenchAdvisor.java (revision 12608)
+++ editor/tools/plugins/com.google.dart.tools.deploy/src/com/google/dart/tools/deploy/ApplicationWorkbenchAdvisor.java (working copy)
@@ -19,6 +19,7 @@
import com.google.dart.tools.core.internal.model.DartModelManager;
import com.google.dart.tools.core.internal.model.PackageLibraryManagerProvider;
import com.google.dart.tools.core.model.DartModelException;
+import com.google.dart.tools.core.model.DartSdkManager;
import com.google.dart.tools.ui.DartToolsPlugin;
import com.google.dart.tools.ui.PreferenceConstants;
import com.google.dart.tools.ui.actions.DeployConsolePatternMatcher;
@@ -265,7 +266,10 @@
}
});
- new AnalysisMonitor(PackageLibraryManagerProvider.getDefaultAnalysisServer()).start();
+ if (DartSdkManager.getManager().hasSdk()) {
+ new AnalysisMonitor(PackageLibraryManagerProvider.getDefaultAnalysisServer()).start();
+ }
+
IWorkbench workbench = PlatformUI.getWorkbench();
IActivityManager act = workbench.getActivitySupport().getActivityManager();
IBindingService bind = (IBindingService) workbench.getService(IBindingService.class);
« no previous file with comments | « editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/info/DartModelInfo.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698