Statistics
| Revision:

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

History | View | Annotate | Download (5.3 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.commands">
24
      <command
25
            categoryId="org.txm.rcp.category.txm"
26
            defaultHandler="org.txm.wordcloud.rcp.handlers.ComputeWordCloud"
27
            id="org.txm.wordcloud.rcp.handlers.ComputeWordCloud"
28
            name="%command.name">
29
      </command>
30
   </extension>
31
   <extension
32
         point="org.eclipse.ui.menus">
33
      <menuContribution
34
            allPopups="false"
35
            locationURI="toolbar:org.txm.rcp.toolbartools">
36
         <command
37
               commandId="org.txm.wordcloud.rcp.handlers.ComputeWordCloud"
38
               icon="icons/functions/wordcloud.png"
39
               style="push">
40
            <visibleWhen
41
                  checkEnabled="false">
42
               <or>
43
                  <reference
44
                        definitionId="OneLexiconSelected">
45
                  </reference>
46
                  <reference
47
                        definitionId="OneIndexSelected">
48
                  </reference>
49
                  <reference
50
                        definitionId="OneCorpusSelected">
51
                  </reference>
52
               </or>
53
            </visibleWhen>
54
         </command>
55
      </menuContribution>
56
      <menuContribution
57
            allPopups="false"
58
            locationURI="popup:org.txm.rcp.views.CorporaView">
59
         <command
60
               commandId="org.txm.wordcloud.rcp.handlers.ComputeWordCloud"
61
               icon="icons/functions/wordcloud.png"
62
               style="push">
63
            <visibleWhen
64
                  checkEnabled="false">
65
               <or>
66
                  <reference
67
                        definitionId="OneLexiconSelected">
68
                  </reference>
69
                  <reference
70
                        definitionId="OneIndexSelected">
71
                  </reference>
72
                  <reference
73
                        definitionId="OneCorpusSelected">
74
                  </reference>
75
               </or>
76
            </visibleWhen>
77
         </command>
78
      </menuContribution>
79
      <menuContribution
80
            locationURI="menu:menu.tools">
81
         <command
82
               commandId="org.txm.wordcloud.rcp.handlers.ComputeWordCloud"
83
               icon="icons/functions/wordcloud.png"
84
               style="push">
85
            <visibleWhen
86
                  checkEnabled="false">
87
               <or>
88
                  <reference
89
                        definitionId="OneLexiconSelected">
90
                  </reference>
91
                  <reference
92
                        definitionId="OneIndexSelected">
93
                  </reference>
94
                  <reference
95
                        definitionId="OneCorpusSelected">
96
                  </reference>
97
               </or>
98
            </visibleWhen>
99
         </command>
100
      </menuContribution>
101
      <menuContribution
102
            locationURI="menu:menu.help.plugins">
103
         <command
104
               commandId="org.txm.rcp.commands.OpenBrowser"
105
               icon="icons/functions/wordcloud.png"
106
               label="%command.name"
107
               style="push">
108
            <parameter
109
                  name="org.txm.rcp.commands.commandParameter2"
110
                  value="https://groupes.renater.fr/wiki/txm-users/public/extensions#wordcloud">
111
            </parameter>
112
         </command>
113
      </menuContribution>
114
   </extension>
115
   <extension
116
         point="org.eclipse.ui.editors">
117
      <editor
118
            class="org.txm.wordcloud.rcp.editors.WordCloudEditor"
119
            default="false"
120
            icon="icons/functions/wordcloud.png"
121
            id="org.txm.wordcloud.core.functions.WordCloud"
122
            name="%editor.name">
123
      </editor>
124
   </extension>
125
   <extension
126
         point="org.eclipse.core.runtime.adapters">
127
      <factory
128
            adaptableType="org.txm.wordcloud.core.functions.WordCloud"
129
            class="org.txm.wordcloud.rcp.adapters.WordCloudAdapterFactory">
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.wordcloud.rcp.preferences.WordCloudPreferencePage"
140
            id="org.txm.wordcloud.rcp.preferences.WordCloudPreferencePage"
141
            name="%page.name">
142
      </page>
143
   </extension>
144
   <extension
145
         point="org.eclipse.core.expressions.definitions">
146
      <definition
147
            id="OneWordCloudSelected">
148
         <with
149
               variable="selection">
150
            <iterate
151
                  ifEmpty="false"
152
                  operator="and">
153
               <instanceof
154
                     value="org.txm.wordcloud.core.functions.WordCloud">
155
               </instanceof>
156
            </iterate>
157
         </with>
158
      </definition>
159
   </extension>
160
</plugin>