Statistics
| Revision:

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

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

    
150
</plugin>