Statistics
| Revision:

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

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:org.txm.rcp.views.CorporaView">
39
         <command
40
               commandId="org.txm.specificities.rcp.handlers.ComputeSpecifities"
41
               icon="icons/functions/specificities.png"
42
               style="push">
43
            <visibleWhen
44
                  checkEnabled="false">
45
               <or>
46
                  <reference
47
                        definitionId="OnePartitionSelected">
48
                  </reference>
49
                  <reference
50
                        definitionId="OneSubCorpusSelected">
51
                  </reference>
52
                  <reference
53
                        definitionId="OneLexicalTableSelected">
54
                  </reference>
55
               </or>
56
            </visibleWhen>
57
            <parameter
58
                  name="org.txm.specificities.rcp.parameter1"
59
                  value="org.txm.specificities.rcp.parameter1">
60
            </parameter>
61
         </command>
62
      </menuContribution>
63
      <menuContribution
64
            locationURI="menu:menu.tools">
65
         <command
66
               commandId="org.txm.specificities.rcp.handlers.ComputeSpecifities"
67
               icon="icons/functions/specificities.png"
68
               style="push">
69
            <visibleWhen
70
                  checkEnabled="false">
71
               <or>
72
                  <reference
73
                        definitionId="OnePartitionSelected">
74
                  </reference>
75
                  <reference
76
                        definitionId="OneSubCorpusSelected">
77
                  </reference>
78
                  <reference
79
                        definitionId="OneLexicalTableSelected">
80
                  </reference>
81
               </or>
82
            </visibleWhen>
83
         </command>
84
      </menuContribution>
85
      <menuContribution
86
            allPopups="false"
87
            locationURI="toolbar:org.txm.rcp.toolbartools">
88
         <command
89
               commandId="org.txm.specificities.rcp.handlers.ComputeSpecifities"
90
               icon="icons/functions/specificities.png"
91
               style="push"
92
               tooltip="%command.tooltip">
93
            <visibleWhen
94
                  checkEnabled="false">
95
               <or>
96
                  <reference
97
                        definitionId="OnePartitionSelected">
98
                  </reference>
99
                  <reference
100
                        definitionId="OneSubCorpusSelected">
101
                  </reference>
102
                  <reference
103
                        definitionId="OneLexicalTableSelected">
104
                  </reference>
105
               </or>
106
            </visibleWhen>
107
         </command>
108
      </menuContribution>
109
      <menuContribution
110
            locationURI="popup:SpecificitiesEditorContextMenu">
111
         <command
112
               commandId="org.txm.specificities.rcp.handlers.ComputeSpecifictiesSelectionChart"
113
               icon="icons/functions/specificities.png"
114
               style="push">
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>