Statistics
| Revision:

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

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

    
157
</plugin>