Statistics
| Revision:

root / tmp / org.txm.ahc.rcp / plugin.xml @ 2802

History | View | Annotate | Download (4.9 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.ahc.rcp.handlers.ComputeAHC"
9
            id="org.txm.cah.rcp.handlers.ComputeAHC"
10
            name="%command.name"
11
            returnTypeId="org.txm.ahc.core.functions.AHC">
12
      </command>
13
   </extension>
14
   <extension
15
         point="org.eclipse.ui.menus">
16
      <menuContribution
17
            allPopups="false"
18
            locationURI="toolbar:org.txm.rcp.toolbartools?after=org.txm.ca.rcp.handlers.ComputeCA">
19
         <command
20
               commandId="org.txm.cah.rcp.handlers.ComputeAHC"
21
               icon="icons/cah.png"
22
               style="push"
23
               tooltip="%command.tooltip">
24
            <visibleWhen
25
                  checkEnabled="false">
26
               <or>
27
                  <reference
28
                        definitionId="OneCASelected">
29
                  </reference>
30
                  <reference
31
                        definitionId="OneLexicalTableSelected">
32
                  </reference>
33
                  <reference
34
                        definitionId="OnePartitionSelected">
35
                  </reference>
36
                  <reference
37
                        definitionId="OnePartitionIndexSelected">
38
                  </reference>
39
               </or>
40
            </visibleWhen>
41
         </command>
42
      </menuContribution>
43
      <menuContribution
44
            allPopups="false"
45
            locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.ca.rcp.handlers.ComputeCA">
46
         <command
47
               commandId="org.txm.cah.rcp.handlers.ComputeAHC"
48
               icon="icons/cah.png"
49
               style="push"
50
               tooltip="%command.tooltip">
51
            <visibleWhen
52
                  checkEnabled="false">
53
               <or>
54
                  <reference
55
                        definitionId="OneCASelected">
56
                  </reference>
57
                  <reference
58
                        definitionId="OneLexicalTableSelected">
59
                  </reference>
60
                  <reference
61
                        definitionId="OnePartitionSelected">
62
                  </reference>
63
                  <reference
64
                        definitionId="OnePartitionIndexSelected">
65
                  </reference>
66
               </or>
67
            </visibleWhen>
68
         </command>
69
      </menuContribution>
70
      <menuContribution
71
            locationURI="menu:menu.tools?after=org.txm.ca.rcp.handlers.ComputeCA">
72
         <command
73
               commandId="org.txm.cah.rcp.handlers.ComputeAHC"
74
               icon="icons/cah.png"
75
               style="push"
76
               tooltip="%command.tooltip">
77
            <visibleWhen
78
                  checkEnabled="false">
79
               <or>
80
                  <reference
81
                        definitionId="OneCASelected">
82
                  </reference>
83
                  <reference
84
                        definitionId="OneLexicalTableSelected">
85
                  </reference>
86
                  <reference
87
                        definitionId="OnePartitionSelected">
88
                  </reference>
89
                  <reference
90
                        definitionId="OnePartitionIndexSelected">
91
                  </reference>
92
               </or>
93
            </visibleWhen>
94
         </command>
95
      </menuContribution>
96
   </extension>
97
   <extension
98
         point="org.eclipse.ui.editors">
99
      <editor
100
            class="org.txm.ahc.rcp.editors.AHCEditor"
101
            default="false"
102
            icon="icons/cah.png"
103
            id="org.txm.ahc.core.functions.AHC"
104
            name="%editor.name">
105
      </editor>
106
   </extension>
107
   <extension
108
         point="org.eclipse.core.runtime.adapters">
109
      <factory
110
            adaptableType="org.txm.ahc.core.functions.AHC"
111
            class="org.txm.ahc.rcp.adapters.AHCAdapterFactory">
112
         <adapter
113
               type="org.eclipse.ui.model.IWorkbenchAdapter">
114
         </adapter>
115
         <adapter
116
               type="org.eclipse.ui.model.IWorkbenchAdapter2">
117
         </adapter>
118
      </factory>
119
   </extension>
120
   <extension
121
         point="org.eclipse.ui.preferencePages">
122
      <page
123
            category="org.txm.rcp.preferences.UserPreferencePage"
124
            class="org.txm.ahc.rcp.preferences.AHCPreferencePage"
125
            id="org.txm.cah.rcp.preferences.CAHPreferencePage"
126
            name="%page.name">
127
      </page>
128
   </extension>
129
   <extension
130
         point="org.eclipse.core.expressions.definitions">
131
      <definition
132
            id="OneCAHSelected">
133
         <with
134
               variable="selection">
135
            <iterate
136
                  ifEmpty="false"
137
                  operator="and">
138
               <instanceof
139
                     value="org.txm.ahc.core.functions.AHC">
140
               </instanceof>
141
            </iterate>
142
         </with>
143
      </definition>
144
   </extension>
145

    
146
</plugin>