Revision 845 tmp/org.txm.referencer.rcp/plugin.xml

plugin.xml (revision 845)
57 57
                     </visibleWhen>
58 58
                  </command>
59 59
               </menuContribution>
60
               <menuContribution
61
            locationURI="popup:org.txm.referencer.rcp.editors.ReferencerEditor">
62
         <command
63
               commandId="org.txm.referencer.rcp.handlers.ReferencerToConc"
64
               style="push">
65
         </command>
66
      </menuContribution>
67 60
   </extension>
68 61
   <extension
69 62
         point="org.eclipse.ui.commands">
70
         <command
71
            defaultHandler="org.txm.referencer.rcp.handlers.ReferencerToConc"
72
            id="org.txm.referencer.rcp.handlers.ReferencerToConc"
73
            name="%command.name.57">
74
      </command>
75 63
      
76 64
            <command
77 65
                  categoryId="org.txm.rcp.category.txm"
......
96 84
                  </iterate>
97 85
               </with>
98 86
            </definition>
87
       <definition
88
             id="ReferencerEditorActive">
89
          <with
90
                variable="activePart">
91
             <instanceof
92
                   value="org.txm.referencer.rcp.editors.ReferencerEditor">
93
             </instanceof>
94
          </with>
95
       </definition>
99 96
   </extension>
100 97
   <extension
101 98
         point="org.eclipse.core.runtime.adapters">
......
116 113
            name="Referencer">
117 114
      </page>
118 115
   </extension>
116
   <extension
117
         point="org.eclipse.ui.handlers">
118
      <handler
119
            class="org.txm.referencer.rcp.handlers.SendReferencerTo"
120
            commandId="org.txm.concordance.rcp.commands.SendToConcordance">
121
         <activeWhen>
122
         <and>
123
            <reference
124
                  definitionId="ReferencerEditorActive">
125
            </reference>
126
                     <reference
127
               definitionId="OneOrMoreElementSelected">
128
         </reference>
129
            </and>
130
         </activeWhen>
131
      </handler>
132
   </extension>
119 133
</plugin>

Also available in: Unified diff