Statistics
| Revision:

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

History | View | Annotate | Download (5.1 kB)

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

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