Statistics
| Revision:

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

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