Statistics
| Revision:

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

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

    
133
</plugin>