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

plugin.xml (revision 845)
56 56
            </visibleWhen>
57 57
         </command>
58 58
      </menuContribution>
59
            <menuContribution
60
            locationURI="popup:org.txm.internalview.rcp.editors.InternalViewEditor">
61
         <command
62
               commandId="org.txm.rcp.commands.link.ToConcordance"
63
               style="push">
64
         </command>
65
         <command
66
               commandId="org.txm.rcp.commands.link.ToIndex"
67
               style="push">
68
         </command>
69
         <command
70
               commandId="org.txm.rcp.commands.link.ToProgression"
71
               style="push">
72
         </command>
73
      </menuContribution>
74 59
      
75 60
   </extension>   <extension
76 61
         point="org.eclipse.ui.editors">
......
105 90
            </iterate>
106 91
         </with>
107 92
      </definition>
93
      <definition
94
            id="InternalViewEditorActive">
95
         <with
96
               variable="activePart">
97
            <instanceof
98
                  value="org.txm.internalview.rcp.editors.InternalViewEditor">
99
            </instanceof>
100
         </with>
101
      </definition>
108 102
   </extension>
103
                <extension
104
                      point="org.eclipse.ui.handlers">
105
                   <handler
106
                         class="org.txm.internalview.rcp.handlers.SendInternalViewTo"
107
                         commandId="org.txm.concordance.rcp.commands.SendToConcordance">
108
                      <activeWhen>
109
                      <and>
110
                            <reference
111
                                  definitionId="InternalViewEditorActive">
112
                            </reference>
113
                                     <reference
114
               definitionId="OneOrMoreElementSelected">
115
         </reference>
116
                            </and>
117
                      </activeWhen>
118
                   </handler>
119
                   <handler
120
                         class="org.txm.internalview.rcp.handlers.SendInternalViewTo"
121
                         commandId="org.txm.index.rcp.commands.SendToIndex">
122
                      <activeWhen>
123
                      <and>
124
                         <reference
125
                               definitionId="InternalViewEditorActive">
126
                         </reference>
127
                                  <reference
128
               definitionId="OneOrMoreElementSelected">
129
         </reference>
130
                         </and>
131
                      </activeWhen>
132
                   </handler>
133
                   <handler
134
                         class="org.txm.internalview.rcp.handlers.SendInternalViewTo"
135
                         commandId="org.txm.progression.rcp.commands.SendToProgression">
136
                      <activeWhen>
137
                      <and>
138
                            <reference
139
                                  definitionId="InternalViewEditorActive">
140
                            </reference>
141
                                     <reference
142
               definitionId="OneOrMoreElementSelected">
143
         </reference>
144
                            </and>
145
                      </activeWhen>
146
                   </handler>
147
                </extension>
109 148
</plugin>

Also available in: Unified diff