Statistics
| Revision:

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

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