Statistics
| Revision:

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

History | View | Annotate | Download (4.3 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
               </or>
37
            </visibleWhen>
38
         </command>
39
      </menuContribution>
40
      <menuContribution
41
            allPopups="false"
42
            locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.rcp.corporaview.tools.stat">
43
         <command
44
               commandId="org.txm.cah.rcp.handlers.ComputeAHC"
45
               icon="icons/cah.png"
46
               style="push">
47
            <visibleWhen
48
                  checkEnabled="false">
49
               <or>
50
                  <reference
51
                        definitionId="OneCASelected">
52
                  </reference>
53
                  <reference
54
                        definitionId="OneLexicalTableSelected">
55
                  </reference>
56
                  <reference
57
                        definitionId="OnePartitionSelected">
58
                  </reference>
59
               </or>
60
            </visibleWhen>
61
         </command>
62
      </menuContribution>
63
      <menuContribution
64
            locationURI="menu:menu.tools">
65
         <command
66
               commandId="org.txm.cah.rcp.handlers.ComputeAHC"
67
               icon="icons/cah.png"
68
               style="push">
69
            <visibleWhen
70
                  checkEnabled="false">
71
               <or>
72
                  <reference
73
                        definitionId="OneCASelected">
74
                  </reference>
75
                  <reference
76
                        definitionId="OneLexicalTableSelected">
77
                  </reference>
78
                  <reference
79
                        definitionId="OnePartitionSelected">
80
                  </reference>
81
               </or>
82
            </visibleWhen>
83
         </command>
84
      </menuContribution>
85
   </extension>
86
   <extension
87
         point="org.eclipse.ui.editors">
88
      <editor
89
            class="org.txm.ahc.rcp.editors.AHCChartEditor"
90
            default="false"
91
            icon="icons/cah.png"
92
            id="org.txm.ahc.core.functions.AHC"
93
            name="%editor.name">
94
      </editor>
95
   </extension>
96
   <extension
97
         point="org.eclipse.core.runtime.adapters">
98
      <factory
99
            adaptableType="org.txm.ahc.core.functions.AHC"
100
            class="org.txm.ahc.rcp.adapters.AHCAdapterFactory">
101
         <adapter
102
               type="org.eclipse.ui.model.IWorkbenchAdapter">
103
         </adapter>
104
      </factory>
105
   </extension>
106
   <extension
107
         point="org.eclipse.ui.preferencePages">
108
      <page
109
            category="org.txm.rcp.preferences.UserPreferencePage"
110
            class="org.txm.ahc.rcp.preferences.AHCPreferencePage"
111
            id="org.txm.cah.rcp.preferences.CAHPreferencePage"
112
            name="%page.name">
113
      </page>
114
   </extension>
115
   <extension
116
         point="org.eclipse.core.expressions.definitions">
117
      <definition
118
            id="OneCAHSelected">
119
         <with
120
               variable="selection">
121
            <iterate
122
                  ifEmpty="false"
123
                  operator="and">
124
               <instanceof
125
                     value="org.txm.ahc.core.functions.AHC">
126
               </instanceof>
127
            </iterate>
128
         </with>
129
      </definition>
130
   </extension>
131

    
132
</plugin>