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

Unified Diff: editor/tools/plugins/com.google.dart.eclipse.ui/plugin.xml

Issue 938623006: don't show dart menu for non dart projects (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 10 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.eclipse.ui/plugin.xml
===================================================================
--- editor/tools/plugins/com.google.dart.eclipse.ui/plugin.xml (revision 43847)
+++ editor/tools/plugins/com.google.dart.eclipse.ui/plugin.xml (working copy)
@@ -292,6 +292,20 @@
</extension>
<extension
point="org.eclipse.ui.navigator.viewer">
+ <viewerContentBinding viewerId="org.eclipse.jdt.ui.PackageExplorer">
+ <includes>
+ <contentExtension
+ pattern="com.google.dart.eclipse.ui.navigatorContent">
+ </contentExtension>
+ <contentExtension
+ pattern="com.google.dart.eclipse.ui.commonFilter.pubCacheProjects">
+ </contentExtension>
+ </includes>
+ </viewerContentBinding>
+ </extension>
+
+ <extension
+ point="org.eclipse.ui.navigator.viewer">
<viewerContentBinding viewerId="org.eclipse.ui.navigator.ProjectExplorer">
<includes>
<contentExtension
@@ -303,7 +317,7 @@
</includes>
</viewerContentBinding>
</extension>
-
+
<extension point="org.eclipse.ui.menus">
<menuContribution
locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
@@ -320,13 +334,19 @@
<menu
label="Dart">
<visibleWhen>
+ <and>
+ <test
+ property="com.google.dart.tools.debug.isInDartProject"
+ value="true">
+ </test>
<with variable="activeMenuSelection">
<iterate>
<adapt
type="org.eclipse.core.resources.IResource">
</adapt>
- </iterate>
+ </iterate>
</with>
+ </and>
</visibleWhen>
<command
commandId="com.google.dart.tools.ui.commands.unIgnoreResource"
« 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