Statistics
| Revision:

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

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

    
169
</plugin>