Statistics
| Revision:

root / tmp / org.txm.internalview.rcp / plugin.xml @ 2213

History | View | Annotate | Download (6 kB)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<?eclipse version="3.4"?>
3
<plugin>   <extension
4
         point="org.eclipse.ui.commands">
5
      <command
6
            categoryId="org.txm.rcp.category.txm"
7
            defaultHandler="org.txm.internalview.rcp.handlers.ComputeInternalView"
8
            id="org.txm.internalview.rcp.handlers.ComputeInternalView"
9
            name="%command.name"
10
            returnTypeId="org.txm.internalview.core.functions.InternalView">
11
      </command>
12
   </extension>   <extension
13
         point="org.eclipse.ui.menus">
14
      <menuContribution
15
            allPopups="false"
16
            locationURI="toolbar:org.txm.rcp.toolbarcorpus?after=org.txm.properties.rcp.handlers.ComputeProperties">
17
         <command
18
               commandId="org.txm.internalview.rcp.handlers.ComputeInternalView"
19
               icon="icons/application_form_magnify.png"
20
               style="push">
21
            <visibleWhen
22
                  checkEnabled="false">
23
               <reference
24
                     definitionId="OneCorpusSelected">
25
               </reference>
26
            </visibleWhen>
27
         </command>
28
      </menuContribution>
29
      <menuContribution
30
            allPopups="false"
31
            locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.properties.rcp.handlers.ComputeProperties">
32
         <command
33
               commandId="org.txm.internalview.rcp.handlers.ComputeInternalView"
34
               icon="icons/application_form_magnify.png"
35
               style="push">
36
            <visibleWhen
37
                  checkEnabled="false">
38
               <reference
39
                     definitionId="OneCorpusSelected">
40
               </reference>
41
            </visibleWhen>
42
         </command>
43
      </menuContribution>
44
      <menuContribution
45
            locationURI="menu:menu.corpus?after=org.txm.edition.rcp.handlers.OpenEdition">
46
         <command
47
               commandId="org.txm.internalview.rcp.handlers.ComputeInternalView"
48
               icon="icons/application_form_magnify.png"
49
               style="push"
50
               tooltip="%command.tooltip">
51
            <visibleWhen
52
                  checkEnabled="false">
53
               <reference
54
                     definitionId="OneCorpusSelected">
55
               </reference>
56
            </visibleWhen>
57
         </command>
58
      </menuContribution>
59
      
60
   </extension>   <extension
61
         point="org.eclipse.ui.editors">
62
      <editor
63
            class="org.txm.internalview.rcp.editors.InternalViewEditor"
64
            default="false"
65
            icon="icons/application_form_magnify.png"
66
            id="org.txm.internalview.rcp.editors.InternalViewEditor"
67
            name="%editor.name">
68
      </editor>
69
   </extension>   <extension
70
         point="org.eclipse.core.runtime.adapters">
71
      <factory
72
            adaptableType="org.txm.internalview.core.functions.InternalView"
73
            class="org.txm.internalview.rcp.adapters.InternalViewAdapterFactory">
74
         <adapter
75
               type="org.eclipse.ui.model.IWorkbenchAdapter">
76
         </adapter>
77
         <adapter
78
               type="org.eclipse.ui.model.IWorkbenchAdapter2">
79
         </adapter>
80
      </factory>
81
   </extension> <extension
82
         point="org.eclipse.core.expressions.definitions">
83
      <definition
84
            id="OneInternalViewSelected">
85
         <with
86
               variable="selection">
87
            <iterate
88
                  ifEmpty="false"
89
                  operator="and">
90
               <instanceof
91
                     value="org.txm.internalview.core.functions.InternalView">
92
               </instanceof>
93
            </iterate>
94
         </with>
95
      </definition>
96
      <definition
97
            id="InternalViewEditorActive">
98
         <with
99
               variable="activePart">
100
            <instanceof
101
                  value="org.txm.internalview.rcp.editors.InternalViewEditor">
102
            </instanceof>
103
         </with>
104
      </definition>
105
   </extension>
106
                <extension
107
                      point="org.eclipse.ui.handlers">
108
                   <handler
109
                         class="org.txm.internalview.rcp.handlers.SendInternalViewTo"
110
                         commandId="org.txm.concordance.rcp.handlers.ComputeConcordance">
111
                      <activeWhen>
112
                      <and>
113
                            <reference
114
                                  definitionId="InternalViewEditorActive">
115
                            </reference>
116
                                     <reference
117
                                           definitionId="SendSelectionContextNotActive">
118
                                     </reference>
119
                            </and>
120
                      </activeWhen>
121
                   </handler>
122
                   <handler
123
                         class="org.txm.internalview.rcp.handlers.SendInternalViewTo"
124
                         commandId="org.txm.index.rcp.handlers.ComputeIndex">
125
                      <activeWhen>
126
                      <and>
127
                         <reference
128
                               definitionId="InternalViewEditorActive">
129
                         </reference>
130
                                  <reference
131
                                        definitionId="SendSelectionContextNotActive">
132
                                  </reference>
133
                         </and>
134
                      </activeWhen>
135
                   </handler>
136
                   <handler
137
                         class="org.txm.internalview.rcp.handlers.SendInternalViewTo"
138
                         commandId="org.txm.progression.rcp.handlers.ComputeProgression">
139
                      <activeWhen>
140
                      <and>
141
                            <reference
142
                                  definitionId="InternalViewEditorActive">
143
                            </reference>
144
                                     <reference
145
                                           definitionId="SendSelectionContextNotActive">
146
                                     </reference>
147
                            </and>
148
                      </activeWhen>
149
                   </handler>
150
                </extension>
151
</plugin>