Fixed: [Issue 4] Command "Open Terminal Here" shows everywhere
diff --git a/com.google.eclipse.terminal.local/plugin.xml b/com.google.eclipse.terminal.local/plugin.xml
index 6cf6dc1..9f19172 100644
--- a/com.google.eclipse.terminal.local/plugin.xml
+++ b/com.google.eclipse.terminal.local/plugin.xml
@@ -68,6 +68,22 @@
<command
commandId="com.google.eclipse.terminal.local.open"
style="push">
+ <visibleWhen
+ checkEnabled="false">
+ <and>
+ <with
+ variable="selection">
+ <count
+ value="1">
+ </count>
+ </with>
+ <iterate>
+ <adapt
+ type="org.eclipse.core.resources.IResource">
+ </adapt>
+ </iterate>
+ </and>
+ </visibleWhen>
</command>
</menuContribution>
</extension>