Statistics
| Revision:

root / tmp / org.txm.index.rcp / plugin.xml @ 499

History | View | Annotate | Download (5.3 kB)

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

    
164
</plugin>