Project

General

Profile

Download (12.2 KB) Statistics
| Branch: | Tag: | Revision:
1
<?xml version="1.0" encoding="UTF-8"?>
2
<?eclipse version="3.2"?>
3
<plugin>
4
   <extension
5
         id="application"
6
         point="org.eclipse.core.runtime.applications">
7
      <application>
8
         <run
9
               class="eu.etaxonomy.taxeditor.navigation.Application">
10
         </run>
11
      </application>
12
   </extension>
13
   <extension
14
         point="org.eclipse.ui.menus">
15
      <menuContribution
16
            locationURI="menu:eu.etaxonomy.taxeditor.workbench.menu.file">
17
         <separator
18
               name="eu.etaxonomy.taxeditor.navigation.recentnames.separator"
19
               visible="true">
20
         </separator>
21
         <dynamic
22
               class="eu.etaxonomy.taxeditor.navigation.RecentNamesContributionItem"
23
               id="eu.etaxonomy.taxeditor.navigation.recentnames">
24
            <visibleWhen
25
                  checkEnabled="true">
26
               <reference
27
                     definitionId="isCdmStoreConnected">
28
               </reference>
29
            </visibleWhen>
30
         </dynamic>
31
      </menuContribution>
32
      <menuContribution
33
            locationURI="menu:eu.etaxonomy.taxeditor.menu.showView?before=eu.etaxonomy.taxeditor.editor.showViewMenu">
34
         <command
35
               commandId="org.eclipse.ui.views.showView"
36
               label="%command.label.0"
37
               style="push">
38
            <parameter
39
                  name="org.eclipse.ui.views.showView.viewId"
40
                  value="eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
41
            </parameter>
42
            <visibleWhen
43
                  checkEnabled="true">
44
               <reference
45
                     definitionId="isCdmStoreConnected">
46
               </reference>
47
            </visibleWhen>
48
         </command>
49
      </menuContribution>
50
      <menuContribution
51
            locationURI="menu:eu.etaxonomy.navigation.menu.new">
52
         <command
53
               commandId="eu.etaxonomy.taxeditor.navigation.command.create.taxonNode"
54
               label="%command.label.13"
55
               style="push">
56
            <visibleWhen
57
                  checkEnabled="true">
58
               <reference
59
                     definitionId="isCdmStoreConnected">
60
               </reference>
61
            </visibleWhen>
62
         </command>
63
         <separator
64
               name="eu.etaxonomy.navigation.menu.new.separator1"
65
               visible="true">
66
         </separator>
67
         <command
68
               commandId="eu.etaxonomy.taxeditor.navigation.create.classification"
69
               id="eu.etaxonomy.taxeditor.navigation.create.classificationHandler"
70
               label="%command.label.14"
71
               style="push">
72
            <visibleWhen
73
                  checkEnabled="true">
74
               <reference
75
                     definitionId="isCdmStoreConnected">
76
               </reference>
77
            </visibleWhen>
78
         </command>
79
      </menuContribution>
80
   </extension>
81
   <extension
82
         point="org.eclipse.ui.handlers">
83
   </extension>  
84
   <extension
85
         point="org.eclipse.ui.navigator.navigatorContent">
86
      <navigatorContent
87
            contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.ClassificationContentProvider"
88
            id="eu.etaxonomy.taxeditor.navigation.classificationContent"
89
            labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.ClassificationLabelProvider"
90
            name="%navigatorContent.name">
91
         <triggerPoints>
92
            <instanceof
93
                  value="eu.etaxonomy.taxeditor.navigation.navigator.Root">
94
            </instanceof>
95
         </triggerPoints>
96
         <possibleChildren>
97
            <instanceof
98
                  value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
99
            </instanceof>
100
         </possibleChildren>
101
         <dropAssistant
102
               class="eu.etaxonomy.taxeditor.navigation.navigator.TreeNodeDropAdapterAssistant"
103
               id="eu.etaxonomy.taxeditor.navigation.navigator.dropassistant">
104
            <possibleDropTargets></possibleDropTargets>
105
         </dropAssistant>
106
      </navigatorContent>
107
      <navigatorContent
108
            contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeContentProvider"
109
            id="eu.etaxonomy.taxeditor.navigation.taxonNodeContent"
110
            labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeLabelProvider"
111
            name="%navigatorContent.name.0">
112
         <triggerPoints>
113
             <or>
114
               <instanceof
115
                     value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
116
               </instanceof>
117
               <and>
118
                  <instanceof
119
                     value="eu.etaxonomy.cdm.model.taxon.Classification">
120
                  </instanceof>
121
                  <test
122
                     forcePluginActivation="true"
123
                     property="eu.etaxonomy.taxeditor.propertytests.hasTaxa">
124
                  </test>
125
               </and>
126
            </or>
127
         </triggerPoints>
128
         <dropAssistant
129
               class="eu.etaxonomy.taxeditor.navigation.navigator.TreeNodeDropAdapterAssistant"
130
               id="eu.etaxonomy.taxeditor.navigation.navigator.dropassistant">
131
            <possibleDropTargets>
132
               <or>
133
                  <instanceof
134
                        value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
135
                  </instanceof>
136
                  <instanceof
137
                        value="eu.etaxonomy.cdm.model.taxon.Classification">
138
                  </instanceof>
139
               </or>
140
            </possibleDropTargets>
141
         </dropAssistant>
142
         <possibleChildren>
143
            <instanceof
144
                  value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
145
            </instanceof>
146
         </possibleChildren>
147
      </navigatorContent>
148
      <navigatorContent
149
            activeByDefault="false"
150
            contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.SynonymContentProvider"
151
            id="eu.etaxonomy.taxeditor.navigation.synonymContent"
152
            labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.SynonymLabelProvider"
153
            name="%navigatorContent.name.1"
154
            priority="highest">
155
         <triggerPoints>
156
            <and>
157
               <instanceof
158
                     value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
159
               </instanceof>
160
               <test
161
                     forcePluginActivation="true"
162
                     property="eu.etaxonomy.taxeditor.propertytests.hasSynonyms">
163
               </test>
164
            </and>
165
         </triggerPoints>
166
         <possibleChildren>
167
            <instanceof
168
                  value="eu.etaxonomy.cdm.model.taxon.Synonym">
169
            </instanceof>
170
         </possibleChildren>
171
      </navigatorContent>
172
   </extension>
173
   <extension
174
         point="org.eclipse.ui.navigator.viewer">
175
      <viewer
176
            viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
177
         <popupMenu
178
               id="eu.etaxonomy.taxeditor.navigation.navigatorpopup">
179
         </popupMenu>
180
      </viewer>
181
      <viewerContentBinding viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
182
         <includes>
183
            <contentExtension
184
                  pattern="eu.etaxonomy.taxeditor.navigation.classificationContent">
185
            </contentExtension>
186
            <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxonNodeContent"/>
187
            <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper"/>
188
            <contentExtension
189
                  pattern="eu.etaxonomy.taxeditor.navigation.synonymContent">
190
            </contentExtension>
191
         </includes>
192
      </viewerContentBinding>
193
      <dragAssistant
194
               class="eu.etaxonomy.taxeditor.navigation.navigator.dnd.TaxonNavigatorDragAdapterAssistant"
195
               viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
196
      </dragAssistant>
197
   </extension>
198
   <extension
199
         point="org.eclipse.ui.navigator.linkHelper">
200
      <linkHelper
201
            class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonLinkHelper"
202
            id="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper">
203
          <selectionEnablement>
204
             <instanceof value="eu.etaxonomy.cdm.model.taxon.TaxonNode"/>
205
          </selectionEnablement>            
206
         <editorInputEnablement>
207
         	<instanceof value="eu.etaxonomy.taxeditor.editor.TaxonEditorInput"/>
208
         </editorInputEnablement>
209
      </linkHelper>
210
   </extension>
211
   <extension
212
         point="org.eclipse.core.runtime.adapters">
213
      <factory
214
            adaptableType="org.eclipse.core.internal.resources.Workspace"
215
            class="eu.etaxonomy.taxeditor.navigation.WorkbenchUndoContextAdapterFactory">
216
         <adapter
217
               type="org.eclipse.core.commands.operations.IUndoContext">
218
         </adapter>
219
      </factory>
220
   </extension>
221
      <extension
222
         point="org.eclipse.core.expressions.propertyTesters">
223
      <propertyTester
224
            class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
225
            id="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
226
            namespace="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
227
            properties="hasSynonyms, isClassification"
228
            type="java.lang.Object">
229
      </propertyTester>
230
      
231
     <propertyTester
232
             class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
233
            id="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
234
            namespace="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
235
            properties="hasTaxa"
236
            type="eu.etaxonomy.cdm.model.taxon.TaxonomicTree">
237
      </propertyTester>
238
      <propertyTester
239
             class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
240
            id="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
241
            namespace="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
242
            properties="hasTaxa"
243
            type="eu.etaxonomy.cdm.model.taxon.TaxonNode">
244
      </propertyTester>
245
   <propertyTester
246
         class="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester"
247
         id="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester"
248
         namespace="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester"
249
         properties="isCdmStoreConnected,isRemoting,isStandAlone"
250
         type="java.lang.Object">
251
   </propertyTester>
252
   </extension>
253
   <extension
254
         point="org.eclipse.core.expressions.definitions">
255
      <definition
256
            id="isTaxonNode">
257
         <with
258
               variable="selection">
259
            <iterate
260
                  ifEmpty="false">
261
               <instanceof
262
                     value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
263
               </instanceof>
264
            </iterate>
265
         </with>
266
      </definition>
267
      <definition
268
            id="isSynonymNode">
269
         <with
270
               variable="selection">
271
            <iterate
272
                  ifEmpty="false">
273
               <instanceof
274
                     value="eu.etaxonomy.cdm.model.taxon.Synonym">
275
               </instanceof>
276
            </iterate>
277
         </with>
278
      </definition>
279
     
280
      <definition
281
            id="isChecklistEditorEnabled">
282
         <with
283
               variable="selection">
284
            <test
285
                  property="eu.etaxonomy.taxeditor.preferences.propertyTester.isChecklistEditorEnabled">
286
            </test>
287
         </with>
288
      </definition>
289
      <definition
290
            id="isCdmStoreConnected">
291
         <test
292
               property="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester.isCdmStoreConnected">
293
         </test>
294
      </definition>
295
      <definition
296
            id="isRemoting">
297
         <test
298
               property="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester.isRemoting">
299
         </test>
300
      </definition>
301
      <definition
302
            id="isStandAlone">
303
         <test
304
               property="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester.isStandAlone">
305
         </test>
306
      </definition>
307
   </extension>
308
   <extension
309
         id="eu.etaxonomy.taxeditor.navigation.workbench.model"
310
         name="Navigation Workbench Model"
311
         point="org.eclipse.e4.workbench.model">
312
      <fragment
313
            apply="always"
314
            uri="fragment.e4xmi">
315
      </fragment>
316
   </extension>
317
</plugin>
(6-6/7)