Statistics
| Revision:

root / tmp / org.txm.partition.rcp / plugin.xml @ 938

History | View | Annotate | Download (4.5 kB)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<?eclipse version="3.4"?>
3
<plugin>
4

    
5
   <extension
6
         point="org.eclipse.ui.commands">
7
      <command
8
            categoryId="org.txm.rcp.category.txm"
9
            defaultHandler="org.txm.partition.rcp.handlers.ComputePartitionDimensionsBarChart"
10
            id="org.txm.partition.rcp.handlers.ComputePartitionDimensionsBarChart"
11
            name="%command.name"
12
            returnTypeId="org.txm.partition.core.functions.PartitionDimensions">
13
      </command>
14
   </extension>
15
   <extension
16
         point="org.eclipse.ui.menus">
17
      <menuContribution
18
            locationURI="menu:menu.corpus">
19
         <command
20
               commandId="org.txm.partition.rcp.handlers.ComputePartitionDimensionsBarChart"
21
               icon="icons/dimensions.png"
22
               style="push">
23
            <visibleWhen
24
                  checkEnabled="false">
25
               <or>
26
                  <reference
27
                        definitionId="OnePartitionSelected">
28
                  </reference>
29
               </or>
30
            </visibleWhen>
31
         </command>
32
      </menuContribution>
33
      <menuContribution
34
            allPopups="false"
35
            locationURI="toolbar:org.txm.rcp.toolbartools">
36
         <command
37
               commandId="org.txm.partition.rcp.handlers.ComputePartitionDimensionsBarChart"
38
               icon="icons/dimensions.png"
39
               style="push"
40
               tooltip="%command.tooltip">
41
            <visibleWhen
42
                  checkEnabled="false">
43
               <or>
44
                  <reference
45
                        definitionId="OnePartitionSelected">
46
                  </reference>
47
               </or>
48
            </visibleWhen>
49
         </command>
50
      </menuContribution>
51
      <menuContribution
52
            allPopups="false"
53
            locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.rcp.corporaview.corpus.read">
54
         <command
55
               commandId="org.txm.partition.rcp.handlers.ComputePartitionDimensionsBarChart"
56
               icon="icons/dimensions.png"
57
               style="push">
58
            <visibleWhen
59
                  checkEnabled="false">
60
               <or>
61
                  <reference
62
                        definitionId="OnePartitionSelected">
63
                  </reference>
64
               </or>
65
            </visibleWhen>
66
         </command>
67
         <command
68
               commandId="CloneTXMResult"
69
               style="push">
70
            <visibleWhen
71
                  checkEnabled="false">
72
               <or>
73
                  <reference
74
                        definitionId="OneChartResultSelected">
75
                  </reference>
76
               </or>
77
            </visibleWhen>
78
         </command>
79
      </menuContribution>
80
   </extension>
81
   <extension
82
         point="org.eclipse.ui.preferencePages">
83
      <page
84
            category="org.txm.rcp.preferences.UserPreferencePage"
85
            class="org.txm.partition.rcp.preferences.PartitionPreferencePage"
86
            id="org.txm.rcp.partition.preferences.PartitionPreferencePage"
87
            name="%page.name">
88
      </page>
89
   </extension>
90
   <extension
91
         point="org.eclipse.ui.editors">
92
      <editor
93
            class="org.txm.partition.rcp.editors.PartitionDimensionsEditor"
94
            default="false"
95
            icon="icons/dimensions.png"
96
            id="org.txm.partition.core.functions.PartitionDimensions"
97
            name="%editor.name">
98
      </editor>
99
   </extension>
100
   <extension
101
         point="org.eclipse.core.runtime.adapters">
102
      <factory
103
            adaptableType="org.txm.partition.core.functions.PartitionDimensions"
104
            class="org.txm.partition.rcp.adapters.PartitionDimensionsAdapterFactory">
105
         <adapter
106
               type="org.eclipse.ui.model.IWorkbenchAdapter">
107
         </adapter>
108
      </factory>
109
      <factory
110
            adaptableType="org.txm.searchengine.cqp.corpus.Partition"
111
            class="org.txm.partition.rcp.adapters.PartitionAdapterFactory">
112
         <adapter
113
               type="org.eclipse.ui.model.IWorkbenchAdapter">
114
         </adapter>
115
      </factory>
116
   </extension>
117
   <extension
118
         point="org.eclipse.core.expressions.definitions">
119
      <definition
120
            id="OnePartitionSelected">
121
         <with
122
               variable="selection">
123
            <iterate
124
                  ifEmpty="false"
125
                  operator="and">
126
               <instanceof
127
                     value="org.txm.searchengine.cqp.corpus.Partition">
128
               </instanceof>
129
            </iterate>
130
         </with>
131
      </definition>
132
   </extension>
133

    
134
</plugin>