You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by pk...@apache.org on 2012/07/11 14:11:52 UTC

svn commit: r1360136 - /uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-addons/plugin.xml

Author: pkluegl
Date: Wed Jul 11 12:11:51 2012
New Revision: 1360136

URL: http://svn.apache.org/viewvc?rev=1360136&view=rev
Log:
UIMA-2345
- show TextMarker popup only in Script Explorer
- test on active editor for the popups for applying TextMarker script on resources

Modified:
    uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-addons/plugin.xml

Modified: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-addons/plugin.xml
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-addons/plugin.xml?rev=1360136&r1=1360135&r2=1360136&view=diff
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-addons/plugin.xml (original)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-addons/plugin.xml Wed Jul 11 12:11:51 2012
@@ -311,7 +311,7 @@ under the License.
    </extension>   <extension
          point="org.eclipse.ui.menus">
       <menuContribution
-            locationURI="popup:org.eclipse.ui.popup.any">
+            locationURI="popup:org.eclipse.dltk.ui.ScriptExplorer?after=additions">
          <menu
                icon="icons/tm_obj.png"
                id="org.apache.uima.textmarker.utils.popup.submenu"
@@ -331,6 +331,14 @@ under the License.
                tooltip="Apply current TextMarker script on folder and keep basics">
             <visibleWhen
                   checkEnabled="true">
+               <and>
+                  <with
+                        variable="activeEditorId">
+                     <equals
+                           value="org.apache.uima.textmarker.ide.ui.editor.TextMarkerEditor">
+                     </equals>
+                  </with>
+               </and>
             </visibleWhen>
          </command>
       </menuContribution>
@@ -347,6 +355,14 @@ under the License.
                tooltip="Apply current TextMarker script on folder">
             <visibleWhen
                   checkEnabled="true">
+               <and>
+                  <with
+                        variable="activeEditorId">
+                     <equals
+                           value="org.apache.uima.textmarker.ide.ui.editor.TextMarkerEditor">
+                     </equals>
+                  </with>
+               </and>
             </visibleWhen>
          </command>
       </menuContribution>
@@ -363,6 +379,14 @@ under the License.
                tooltip="Apply current TextMarker script on folder">
             <visibleWhen
                   checkEnabled="true">
+               <and>
+                  <with
+                        variable="activeEditorId">
+                     <equals
+                           value="org.apache.uima.textmarker.ide.ui.editor.TextMarkerEditor">
+                     </equals>
+                  </with>
+               </and>
             </visibleWhen>
          </command>
       </menuContribution>
@@ -437,17 +461,13 @@ under the License.
       </definition>
       <definition
             id="org.apache.uima.textmarker.utils.apply.script.definition">
-         <with
-               variable="selection">
-            <and>
-               <with
-                     variable="activeEditorId">
-                  <equals
-                        value="org.apache.uima.textmarker.ide.ui.editor.TextMarkerEditor">
-                  </equals>
-               </with>
-            </and>
-         </with>
+         <adapt
+               type="org.eclipse.core.resources.IResource">
+            <test
+                  property="org.eclipse.core.resources.extension"
+                  value="tm">
+            </test>
+         </adapt>
       </definition>
    </extension>   <extension
          point="org.eclipse.ui.bindings">