Statistics
| Revision:

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

History | View | Annotate | Download (4.4 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
      </menuContribution>
68
   </extension>
69
   <extension
70
         point="org.eclipse.ui.preferencePages">
71
      <page
72
            category="org.txm.rcp.preferences.UserPreferencePage"
73
            class="org.txm.partition.rcp.preferences.PartitionPreferencePage"
74
            id="org.txm.rcp.partition.preferences.PartitionPreferencePage"
75
            name="%page.name">
76
      </page>
77
   </extension>
78
   <extension
79
         point="org.eclipse.ui.editors">
80
      <editor
81
            class="org.txm.partition.rcp.editors.PartitionDimensionsEditor"
82
            default="false"
83
            icon="icons/dimensions.png"
84
            id="org.txm.partition.core.functions.PartitionDimensions"
85
            name="%editor.name">
86
      </editor>
87
   </extension>
88
   <extension
89
         point="org.eclipse.core.runtime.adapters">
90
      <factory
91
            adaptableType="org.txm.partition.core.functions.PartitionDimensions"
92
            class="org.txm.partition.rcp.adapters.PartitionDimensionsAdapterFactory">
93
         <adapter
94
               type="org.eclipse.ui.model.IWorkbenchAdapter">
95
         </adapter>
96
         <adapter
97
               type="org.eclipse.ui.model.IWorkbenchAdapter2">
98
         </adapter>
99
      </factory>
100
      <factory
101
            adaptableType="org.txm.searchengine.cqp.corpus.Partition"
102
            class="org.txm.partition.rcp.adapters.PartitionAdapterFactory">
103
         <adapter
104
               type="org.eclipse.ui.model.IWorkbenchAdapter">
105
         </adapter>
106
         <adapter
107
               type="org.eclipse.ui.model.IWorkbenchAdapter2">
108
         </adapter>
109
      </factory>
110
   </extension>
111
   <extension
112
         point="org.eclipse.core.expressions.definitions">
113
      <definition
114
            id="OnePartitionSelected">
115
         <with
116
               variable="selection">
117
            <iterate
118
                  ifEmpty="false"
119
                  operator="and">
120
               <instanceof
121
                     value="org.txm.searchengine.cqp.corpus.Partition">
122
               </instanceof>
123
            </iterate>
124
         </with>
125
      </definition>
126
   </extension>
127

    
128
</plugin>