Statistics
| Revision:

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

History | View | Annotate | Download (5.6 kB)

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