Statistics
| Revision:

root / tmp / org.txm.wordcloud.rcp / plugin.xml @ 23

History | View | Annotate | Download (5.4 kB)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<?eclipse version="3.4"?>
3
<plugin>
4

    
5
   <extension
6
         id="application"
7
         point="org.eclipse.core.runtime.applications">
8
      <application>
9
         <run
10
               class="___wordcloudrcp.Application">
11
         </run>
12
      </application>
13
   </extension>
14
   <extension
15
         point="org.eclipse.ui.perspectives">
16
      <perspective
17
            name="%perspective.name"
18
            class="___wordcloudrcp.Perspective"
19
            id="WordCloudRCP.perspective">
20
      </perspective>
21
   </extension>
22
   <extension
23
         point="org.eclipse.ui.menus">
24
      <menuContribution
25
            allPopups="false"
26
            locationURI="toolbar:org.txm.rcpapplication.toolbartools">
27
         <command
28
               commandId="org.txm.rcp.handlers.ComputeWordCloud"
29
               icon="icons/functions/wordcloud.png"
30
               label="%command.label"
31
               style="push">
32
            <visibleWhen
33
                  checkEnabled="false">
34
               <or>
35
                  <reference
36
                        definitionId="OneLexiconSelected">
37
                  </reference>
38
                  <reference
39
                        definitionId="OneIndexSelected">
40
                  </reference>
41
                  <reference
42
                        definitionId="OneCorpusSelected">
43
                  </reference>
44
               </or>
45
            </visibleWhen>
46
         </command>
47
      </menuContribution>
48
      <menuContribution
49
            allPopups="false"
50
            locationURI="popup:org.txm.rcpapplication.views.CorporaView">
51
         <command
52
               commandId="org.txm.rcp.handlers.ComputeWordCloud"
53
               icon="icons/functions/wordcloud.png"
54
               label="%command.label"
55
               style="push">
56
            <visibleWhen
57
                  checkEnabled="false">
58
               <or>
59
                  <reference
60
                        definitionId="OneLexiconSelected">
61
                  </reference>
62
                  <reference
63
                        definitionId="OneIndexSelected">
64
                  </reference>
65
                  <reference
66
                        definitionId="OneCorpusSelected">
67
                  </reference>
68
               </or>
69
            </visibleWhen>
70
         </command>
71
      </menuContribution>
72
      <menuContribution
73
            locationURI="menu:menu.tools">
74
         <command
75
               commandId="org.txm.rcp.handlers.ComputeWordCloud"
76
               icon="icons/functions/wordcloud.png"
77
               label="%command.label"
78
               style="push">
79
            <visibleWhen
80
                  checkEnabled="false">
81
               <or>
82
                  <reference
83
                        definitionId="OneLexiconSelected">
84
                  </reference>
85
                  <reference
86
                        definitionId="OneIndexSelected">
87
                  </reference>
88
                  <reference
89
                        definitionId="OneCorpusSelected">
90
                  </reference>
91
               </or>
92
            </visibleWhen>
93
         </command>
94
      </menuContribution>
95
      <menuContribution
96
            locationURI="menu:menu.help.plugins">
97
         <command
98
               commandId="org.txm.rcpapplication.commands.OpenBrowser"
99
               label="%command.label"
100
               style="push">
101
            <parameter
102
                  name="org.txm.rcpapplication.commands.commandParameter2"
103
                  value="https://groupes.renater.fr/wiki/txm-users/public/extensions#wordcloud">
104
            </parameter>
105
         </command>
106
      </menuContribution>
107
   </extension>
108
   <extension
109
         point="org.eclipse.ui.commands">
110
      <command
111
            categoryId="org.txm.rcpapplication.category.txm"
112
            defaultHandler="org.txm.wordcloud.rcp.handlers.ComputeWordCloud"
113
            id="org.txm.rcp.handlers.ComputeWordCloud"
114
            name="%command.name">
115
      </command>
116
   </extension>
117
   <extension
118
         point="org.eclipse.ui.editors">
119
      <editor
120
            class="org.txm.wordcloud.rcp.editors.WordCloudEditor"
121
            default="false"
122
            icon="icons/functions/wordcloud.png"
123
            id="org.txm.wordcloud.core.functions.WordCloud"
124
            name="%editor.name">
125
      </editor>
126
   </extension>
127
   <extension
128
         point="org.eclipse.core.runtime.adapters">
129
      <factory
130
            adaptableType="org.txm.wordcloud.core.functions.WordCloud"
131
            class="org.txm.wordcloud.rcp.adapters.AdapterFactory">
132
         <adapter
133
               type="org.eclipse.ui.model.IWorkbenchAdapter">
134
         </adapter>
135
      </factory>
136
   </extension>
137
   <extension
138
         point="org.eclipse.ui.preferencePages">
139
      <page
140
            category="org.txm.rcpapplication.preferences.UserPreferencePage"
141
            class="org.txm.wordcloud.rcp.preferences.WordCloudPreferencePage"
142
            id="org.txm.rcp.wordcloud.preferences.WordCloudPreferencePage"
143
            name="%page.name">
144
      </page>
145
   </extension>
146
   <extension
147
         point="org.eclipse.core.expressions.definitions">
148
      <definition
149
            id="OneWordCloudSelected">
150
         <with
151
               variable="selection">
152
            <iterate
153
                  ifEmpty="false"
154
                  operator="and">
155
               <instanceof
156
                     value="org.txm.wordcloud.tbx.functions.WordCloud">
157
               </instanceof>
158
            </iterate>
159
         </with>
160
      </definition>
161
   </extension>
162
</plugin>