Statistics
| Revision:

root / tmp / org.txm.cooccurrence.rcp / plugin.xml @ 845

History | View | Annotate | Download (6 kB)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<?eclipse version="3.4"?>
3
<plugin>
4
   <extension
5
         point="org.eclipse.ui.commands">
6
      <command
7
            categoryId="org.txm.rcp.category.txm"
8
            defaultHandler="org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences"
9
            id="org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences"
10
            name="%command.name"
11
            returnTypeId="org.txm.cooccurrence.core.functions.Cooccurrence">
12
      </command>
13
      <command
14
            id="org.txm.cooccurrence.rcp.commands.SendToCooccurrence"
15
            name="%command.name.4">
16
         <commandParameter
17
               id="sendToTargetCommandId"
18
               name="sendToTargetCommandId"
19
               optional="true">
20
         </commandParameter>
21
      </command>
22
   </extension>
23
   <extension
24
         point="org.eclipse.ui.preferencePages">
25
      <page
26
            category="org.txm.rcp.preferences.UserPreferencePage"
27
            class="org.txm.cooccurrence.rcp.preferences.CoocPreferencePage"
28
            id="org.txm.cooccurrence.rcp.preferences.CoocPreferencePage"
29
            name="%page.name">
30
      </page>
31
   </extension>
32
   <extension
33
         point="org.eclipse.core.runtime.adapters">
34
      <factory
35
            adaptableType="org.txm.cooccurrence.core.functions.Cooccurrence"
36
            class="org.txm.cooccurrence.rcp.adapters.CooccurrenceAdapterFactory">
37
         <adapter
38
               type="org.eclipse.ui.model.IWorkbenchAdapter">
39
         </adapter>
40
      </factory>
41
   </extension>
42
   <extension
43
         point="org.eclipse.ui.menus">
44
      <menuContribution
45
            allPopups="false"
46
            locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.concordance.rcp.handlers.ComputeConcordance">
47
         <command
48
               commandId="org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences"
49
               icon="icons/cooccurrences.png"
50
               style="push">
51
            <visibleWhen
52
                  checkEnabled="false">
53
               <or>
54
                  <reference
55
                        definitionId="OneCorpusSelected">
56
                  </reference>
57
                  <reference
58
                        definitionId="OneConcordanceSelected">
59
                  </reference>
60
               </or>
61
            </visibleWhen>
62
         </command>
63
      </menuContribution>
64
      <menuContribution
65
            locationURI="menu:menu.tools?after=org.txm.concordance.rcp.handlers.ComputeConcordance">
66
         <command
67
               commandId="org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences"
68
               icon="icons/cooccurrences.png"
69
               style="push">
70
            <visibleWhen
71
                  checkEnabled="false">
72
               <or>
73
                  <reference
74
                        definitionId="OneCorpusSelected">
75
                  </reference>
76
                  <reference
77
                        definitionId="OneConcordanceSelected">
78
                  </reference>
79
               </or>
80
            </visibleWhen>
81
         </command>
82
      </menuContribution>
83
      <menuContribution
84
            allPopups="false"
85
            locationURI="toolbar:org.txm.rcp.toolbartools?after=org.txm.concordance.rcp.handlers.ComputeConcordance">
86
         <command
87
               commandId="org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences"
88
               icon="icons/cooccurrences.png"
89
               style="push"
90
               tooltip="%command.tooltip">
91
            <visibleWhen
92
                  checkEnabled="false">
93
               <or>
94
                  <reference
95
                        definitionId="OneCorpusSelected">
96
                  </reference>
97
                  <reference
98
                        definitionId="OneConcordanceSelected">
99
                  </reference>
100
               </or>
101
            </visibleWhen>
102
         </command>
103
      </menuContribution>
104
      <menuContribution
105
            locationURI="popup:org.txm.index.rcp.editors.IndexEditor">
106
         <command
107
               commandId="org.txm.cooccurrence.rcp.commands.SendToCooccurrence"
108
               icon="icons/cooccurrences.png"
109
               label="%command.name.4"
110
               style="push">
111
            <parameter
112
                  name="sendToTargetCommandId"
113
                  value="org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences">
114
            </parameter>
115
         </command>
116
      </menuContribution>
117
   </extension>
118
   <extension
119
         point="org.eclipse.ui.editors">
120
      <editor
121
            class="org.txm.cooccurrence.rcp.editors.CooccurrencesEditor"
122
            default="false"
123
            icon="icons/cooccurrences.png"
124
            id="org.txm.cooccurrence.rcp.editors.CooccurrencesEditor"
125
            name="%editor.name">
126
      </editor>
127
   </extension>
128
   <extension
129
         point="org.eclipse.core.expressions.definitions">
130
      <definition
131
            id="OneCooccurrenceSelected">
132
         <with
133
               variable="selection">
134
            <iterate
135
                  ifEmpty="false"
136
                  operator="and">
137
               <instanceof
138
                     value="org.txm.cooccurrence.core.functions.Cooccurrence">
139
               </instanceof>
140
            </iterate>
141
         </with>
142
      </definition>
143
      <definition
144
            id="CooccurrenceEditorActive">
145
         <with
146
               variable="activePart">
147
            <instanceof
148
                  value="org.txm.cooccurrence.rcp.editors.CooccurrencesEditor">
149
            </instanceof>
150
         </with>
151
      </definition>
152
   </extension>
153
   <extension
154
         point="org.eclipse.ui.handlers">
155
      <handler
156
            class="org.txm.cooccurrence.rcp.handlers.SendCooccurrenceTo"
157
            commandId="org.txm.concordance.rcp.commands.SendToConcordance">
158
         <activeWhen>
159
            <and>
160
               <reference
161
                     definitionId="CooccurrenceEditorActive">
162
               </reference>
163
               <reference
164
                     definitionId="OneOrMoreElementSelected">
165
               </reference>
166
            </and></activeWhen>
167
      </handler>
168
   </extension>
169

    
170
</plugin>