Statistics
| Revision:

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

History | View | Annotate | Download (3.6 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
      <menuContribution
7
            locationURI="popup:org.txm.rcp.views.CorporaView">
8
         <command
9
               commandId="org.txm.index.rcp.handlers.ComputeIndex"
10
               icon="icons/index.png"
11
               style="push">
12
            <visibleWhen
13
                  checkEnabled="false">
14
               <or>
15
                  <reference
16
                        definitionId="OnePartitionSelected">
17
                  </reference>
18
                  <reference
19
                        definitionId="OneCorpusSelected">
20
                  </reference>
21
               </or>
22
            </visibleWhen>
23
         </command>
24
      </menuContribution>
25
      <menuContribution
26
            locationURI="menu:menu.tools">
27
         <command
28
               commandId="org.txm.index.rcp.handlers.ComputeIndex"
29
               icon="icons/index.png"
30
               style="push">
31
            <visibleWhen
32
                  checkEnabled="false">
33
               <or>
34
                  <reference
35
                        definitionId="OnePartitionSelected">
36
                  </reference>
37
                  <reference
38
                        definitionId="OneCorpusSelected">
39
                  </reference>
40
               </or>
41
            </visibleWhen>
42
         </command>
43
      </menuContribution>
44
      <menuContribution
45
            allPopups="false"
46
            locationURI="toolbar:org.txm.rcp.toolbartools">
47
         <command
48
               commandId="org.txm.index.rcp.handlers.ComputeIndex"
49
               icon="icons/index.png"
50
               style="push"
51
               tooltip="%command.tooltip">
52
            <visibleWhen
53
                  checkEnabled="false">
54
               <or>
55
                  <reference
56
                        definitionId="OnePartitionSelected">
57
                  </reference>
58
                  <reference
59
                        definitionId="OneCorpusSelected">
60
                  </reference>
61
               </or>
62
            </visibleWhen>
63
         </command>
64
      </menuContribution>
65
   </extension>
66
   <extension
67
         point="org.eclipse.ui.editors">
68
      <editor
69
            class="org.txm.index.rcp.editors.IndexEditor"
70
            default="false"
71
            icon="icons/index.png"
72
            id="org.txm.index.rcp.editors.IndexEditor"
73
            name="%editor.name">
74
      </editor>
75
   </extension>
76
   <extension
77
         point="org.eclipse.core.runtime.adapters">
78
      <factory
79
            adaptableType="org.txm.index.core.functions.Index"
80
            class="org.txm.index.rcp.adapters.IndexAdapterFactory">
81
         <adapter
82
               type="org.eclipse.ui.model.IWorkbenchAdapter">
83
         </adapter>
84
      </factory>
85
   </extension>
86
   <extension
87
         point="org.eclipse.ui.commands">
88
      <command
89
            categoryId="org.txm.rcp.category.txm"
90
            defaultHandler="org.txm.index.rcp.handlers.ComputeIndex"
91
            id="org.txm.index.rcp.handlers.ComputeIndex"
92
            name="%command.name">
93
      </command>
94
   </extension>
95
   <extension
96
         point="org.eclipse.core.expressions.definitions">
97
      <definition
98
            id="OneIndexSelected">
99
         <with
100
               variable="selection">
101
            <iterate
102
                  ifEmpty="false"
103
                  operator="and">
104
               <instanceof
105
                     value="org.txm.index.core.functions.Index">
106
               </instanceof>
107
            </iterate>
108
         </with>
109
      </definition>
110
   </extension>
111
   <extension
112
         point="org.txm.statengine.r.rcp.sendtor">
113
      <sendtorcommand></sendtorcommand>
114
   </extension>
115

    
116
</plugin>