Statistics
| Revision:

root / tmp / org.txm.specificities.rcp / plugin.xml @ 491

History | View | Annotate | Download (5.6 kB)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<?eclipse version="3.4"?>
3
<plugin>
4
   <extension
5
         point="org.eclipse.ui.editors">
6
      <editor
7
            class="org.txm.chartsengine.rcp.editors.ChartEditorPart"
8
            default="false"
9
            icon="icons/functions/specificities.png"
10
            id="org.txm.specificities.core.functions.SpecificitesResult"
11
            name="Specificities Chart">
12
      </editor>
13
      <editor
14
            class="org.txm.specificities.rcp.editors.SpecificitiesTableEditor"
15
            default="false"
16
            icon="icons/functions/specificities.png"
17
            id="org.txm.specificities.rcp.editors.SpecificitiesTableEditor"
18
            name="%editor.name">
19
      </editor>
20
   </extension>
21
   <extension
22
         point="org.eclipse.ui.commands">
23
      <command
24
            categoryId="org.txm.rcp.category.txm"
25
            defaultHandler="org.txm.specificities.rcp.handlers.ComputeSpecifities"
26
            id="org.txm.specificities.rcp.handlers.ComputeSpecifities"
27
            name="%command.name">
28
      </command>
29
      <command
30
            defaultHandler="org.txm.specificities.rcp.handlers.ComputeSpecifictiesBarChart"
31
            id="org.txm.specificities.rcp.handlers.ComputeSpecifictiesBarChart"
32
            name="%command.name.0">
33
      </command>
34
   </extension>
35
   <extension
36
         point="org.eclipse.ui.menus">
37
      <menuContribution
38
            locationURI="popup:SpecificitiesTableEditor">
39
         <command
40
               commandId="org.txm.specificities.rcp.handlers.ComputeSpecifictiesBarChart"
41
               icon="icons/functions/specificities.png"
42
               style="push">
43
         </command>
44
      </menuContribution>
45
      <menuContribution
46
            locationURI="popup:org.txm.rcp.views.CorporaView">
47
         <command
48
               commandId="org.txm.specificities.rcp.handlers.ComputeSpecifities"
49
               icon="icons/functions/specificities.png"
50
               style="push">
51
            <visibleWhen
52
                  checkEnabled="false">
53
               <or>
54
                  <reference
55
                        definitionId="OnePartitionSelected">
56
                  </reference>
57
                  <reference
58
                        definitionId="OneSubCorpusSelected">
59
                  </reference>
60
                  <reference
61
                        definitionId="OneLexicalTableSelected">
62
                  </reference>
63
               </or>
64
            </visibleWhen>
65
         </command>
66
      </menuContribution>
67
      <menuContribution
68
            locationURI="menu:menu.tools">
69
         <command
70
               commandId="org.txm.specificities.rcp.handlers.ComputeSpecifities"
71
               icon="icons/functions/specificities.png"
72
               style="push">
73
            <visibleWhen
74
                  checkEnabled="false">
75
               <or>
76
                  <reference
77
                        definitionId="OnePartitionSelected">
78
                  </reference>
79
                  <reference
80
                        definitionId="OneSubCorpusSelected">
81
                  </reference>
82
                  <reference
83
                        definitionId="OneLexicalTableSelected">
84
                  </reference>
85
               </or>
86
            </visibleWhen>
87
         </command>
88
      </menuContribution>
89
      <menuContribution
90
            allPopups="false"
91
            locationURI="toolbar:org.txm.rcp.toolbartools">
92
         <command
93
               commandId="org.txm.specificities.rcp.handlers.ComputeSpecifities"
94
               icon="icons/functions/specificities.png"
95
               style="push"
96
               tooltip="%command.tooltip">
97
            <visibleWhen
98
                  checkEnabled="false">
99
               <or>
100
                  <reference
101
                        definitionId="OnePartitionSelected">
102
                  </reference>
103
                  <reference
104
                        definitionId="OneSubCorpusSelected">
105
                  </reference>
106
                  <reference
107
                        definitionId="OneLexicalTableSelected">
108
                  </reference>
109
               </or>
110
            </visibleWhen>
111
         </command>
112
      </menuContribution>
113
   </extension>
114
   <extension
115
         point="org.eclipse.core.runtime.adapters">
116
      <factory
117
            adaptableType="org.txm.specificities.core.functions.SpecificitesResult"
118
            class="org.txm.specificities.rcp.adapters.SpecificitiesAdapterFactory">
119
         <adapter
120
               type="org.eclipse.ui.model.IWorkbenchAdapter">
121
         </adapter>
122
      </factory>
123
   </extension>
124
   <extension
125
         point="org.eclipse.ui.preferencePages">
126
      <page
127
            category="org.txm.rcp.preferences.UserPreferencePage"
128
            class="org.txm.specificities.rcp.preferences.SpecificitiesPreferencePage"
129
            id="org.txm.specificities.rcp.preferences.SpecificitiesPreferencePage"
130
            name="%page.name">
131
      </page>
132
   </extension>
133
   <extension
134
         point="org.eclipse.core.expressions.definitions">
135
      <definition
136
            id="OneSpecificitiesResultSelected">
137
         <with
138
               variable="selection">
139
            <iterate
140
                  ifEmpty="false"
141
                  operator="and">
142
               <instanceof
143
                     value="org.txm.functions.specificities.SpecificitesResult">
144
               </instanceof>
145
            </iterate>
146
         </with>
147
      </definition>
148
      <definition
149
            id="SpecificitiesEditorActive">
150
         <with
151
               variable="activePartId">
152
            <equals
153
                  value="SpecificitiesTableEditor">
154
            </equals>
155
         </with>
156
      </definition>
157
   </extension>
158

    
159
</plugin>