Statistics
| Revision:

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

History | View | Annotate | Download (6.1 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.specificities.rcp.editors.SpecificitiesSelectionEditor"
8
            default="false"
9
            icon="icons/functions/specificities_selection.png"
10
            id="org.txm.specificities.core.functions.SpecificitiesSelection"
11
            name="Specificities Chart">
12
      </editor>
13
      <editor
14
            class="org.txm.specificities.rcp.editors.SpecificitiesEditor"
15
            default="false"
16
            icon="icons/functions/specificities.png"
17
            id="org.txm.specificities.rcp.editors.SpecificitiesEditor"
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.ComputeSpecifictiesSelectionChart"
31
            id="org.txm.specificities.rcp.handlers.ComputeSpecifictiesSelectionChart"
32
            name="%command.name.0">
33
      </command>
34
   </extension>
35
   <extension
36
         point="org.eclipse.ui.menus">
37
      <menuContribution
38
            locationURI="popup:SpecificitiesEditorContextMenu">
39
         <command
40
               commandId="org.txm.specificities.rcp.handlers.ComputeSpecifictiesSelectionChart"
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
            <parameter
66
                  name="org.txm.specificities.rcp.parameter1"
67
                  value="org.txm.specificities.rcp.parameter1">
68
            </parameter>
69
         </command>
70
      </menuContribution>
71
      <menuContribution
72
            locationURI="menu:menu.tools">
73
         <command
74
               commandId="org.txm.specificities.rcp.handlers.ComputeSpecifities"
75
               icon="icons/functions/specificities.png"
76
               style="push">
77
            <visibleWhen
78
                  checkEnabled="false">
79
               <or>
80
                  <reference
81
                        definitionId="OnePartitionSelected">
82
                  </reference>
83
                  <reference
84
                        definitionId="OneSubCorpusSelected">
85
                  </reference>
86
                  <reference
87
                        definitionId="OneLexicalTableSelected">
88
                  </reference>
89
               </or>
90
            </visibleWhen>
91
         </command>
92
      </menuContribution>
93
      <menuContribution
94
            allPopups="false"
95
            locationURI="toolbar:org.txm.rcp.toolbartools">
96
         <command
97
               commandId="org.txm.specificities.rcp.handlers.ComputeSpecifities"
98
               icon="icons/functions/specificities.png"
99
               style="push"
100
               tooltip="%command.tooltip">
101
            <visibleWhen
102
                  checkEnabled="false">
103
               <or>
104
                  <reference
105
                        definitionId="OnePartitionSelected">
106
                  </reference>
107
                  <reference
108
                        definitionId="OneSubCorpusSelected">
109
                  </reference>
110
                  <reference
111
                        definitionId="OneLexicalTableSelected">
112
                  </reference>
113
               </or>
114
            </visibleWhen>
115
         </command>
116
      </menuContribution>
117
   </extension>
118
   <extension
119
         point="org.eclipse.core.runtime.adapters">
120
      <factory
121
            adaptableType="org.txm.specificities.core.functions.Specificities"
122
            class="org.txm.specificities.rcp.adapters.SpecificitiesAdapterFactory">
123
         <adapter
124
               type="org.eclipse.ui.model.IWorkbenchAdapter">
125
         </adapter>
126
      </factory>
127
      <factory
128
            adaptableType="org.txm.specificities.core.functions.SpecificitiesSelection"
129
            class="org.txm.specificities.rcp.adapters.SpecificitiesAdapterFactory">
130
         <adapter
131
               type="org.eclipse.ui.model.IWorkbenchAdapter">
132
         </adapter>
133
      </factory>
134
   </extension>
135
   <extension
136
         point="org.eclipse.ui.preferencePages">
137
      <page
138
            category="org.txm.rcp.preferences.UserPreferencePage"
139
            class="org.txm.specificities.rcp.preferences.SpecificitiesPreferencePage"
140
            id="org.txm.specificities.rcp.preferences.SpecificitiesPreferencePage"
141
            name="%page.name">
142
      </page>
143
   </extension>
144
   <extension
145
         point="org.eclipse.core.expressions.definitions">
146
      <definition
147
            id="OneSpecificitiesResultSelected">
148
         <with
149
               variable="selection">
150
            <iterate
151
                  ifEmpty="false"
152
                  operator="and">
153
               <instanceof
154
                     value="org.txm.functions.specificities.SpecificitesResult">
155
               </instanceof>
156
            </iterate>
157
         </with>
158
      </definition>
159
      <definition
160
            id="SpecificitiesEditorActive">
161
         <with
162
               variable="activePartId">
163
            <equals
164
                  value="SpecificitiesEditor">
165
            </equals>
166
         </with>
167
      </definition>
168
   </extension>
169

    
170
</plugin>