Project

General

Profile

Download (12.7 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
      <handler
84
            class="eu.etaxonomy.taxeditor.handler.defaultHandler.OpenReferencingObjectsView"
85
            commandId="eu.etaxonomy.taxeditor.openReferencingObjectsView">
86
         <activeWhen>
87
            <with
88
                  variable="activePartId">
89
               <equals
90
                     value="eu.etaxonomy.taxeditor.navigation.navigator">
91
               </equals>
92
            </with>
93
         </activeWhen>
94
      </handler>
95
   </extension>  
96
   <extension
97
         point="org.eclipse.ui.navigator.navigatorContent">
98
      <navigatorContent
99
            contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.ClassificationContentProvider"
100
            id="eu.etaxonomy.taxeditor.navigation.classificationContent"
101
            labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.ClassificationLabelProvider"
102
            name="%navigatorContent.name">
103
         <triggerPoints>
104
            <instanceof
105
                  value="eu.etaxonomy.taxeditor.navigation.navigator.Root">
106
            </instanceof>
107
         </triggerPoints>
108
         <possibleChildren>
109
            <instanceof
110
                  value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
111
            </instanceof>
112
         </possibleChildren>
113
         <dropAssistant
114
               class="eu.etaxonomy.taxeditor.navigation.navigator.TreeNodeDropAdapterAssistant"
115
               id="eu.etaxonomy.taxeditor.navigation.navigator.dropassistant">
116
            <possibleDropTargets></possibleDropTargets>
117
         </dropAssistant>
118
      </navigatorContent>
119
      <navigatorContent
120
            contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeContentProvider"
121
            id="eu.etaxonomy.taxeditor.navigation.taxonNodeContent"
122
            labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeLabelProvider"
123
            name="%navigatorContent.name.0">
124
         <triggerPoints>
125
             <or>
126
               <instanceof
127
                     value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
128
               </instanceof>
129
               <and>
130
                  <instanceof
131
                     value="eu.etaxonomy.cdm.model.taxon.Classification">
132
                  </instanceof>
133
                  <test
134
                     forcePluginActivation="true"
135
                     property="eu.etaxonomy.taxeditor.propertytests.hasTaxa">
136
                  </test>
137
               </and>
138
            </or>
139
         </triggerPoints>
140
         <dropAssistant
141
               class="eu.etaxonomy.taxeditor.navigation.navigator.TreeNodeDropAdapterAssistant"
142
               id="eu.etaxonomy.taxeditor.navigation.navigator.dropassistant">
143
            <possibleDropTargets>
144
               <or>
145
                  <instanceof
146
                        value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
147
                  </instanceof>
148
                  <instanceof
149
                        value="eu.etaxonomy.cdm.model.taxon.Classification">
150
                  </instanceof>
151
               </or>
152
            </possibleDropTargets>
153
         </dropAssistant>
154
         <possibleChildren>
155
            <instanceof
156
                  value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
157
            </instanceof>
158
         </possibleChildren>
159
      </navigatorContent>
160
      <navigatorContent
161
            activeByDefault="false"
162
            contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.SynonymContentProvider"
163
            id="eu.etaxonomy.taxeditor.navigation.synonymContent"
164
            labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.SynonymLabelProvider"
165
            name="%navigatorContent.name.1"
166
            priority="highest">
167
         <triggerPoints>
168
            <and>
169
               <instanceof
170
                     value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
171
               </instanceof>
172
               <test
173
                     forcePluginActivation="true"
174
                     property="eu.etaxonomy.taxeditor.propertytests.hasSynonyms">
175
               </test>
176
            </and>
177
         </triggerPoints>
178
         <possibleChildren>
179
            <instanceof
180
                  value="eu.etaxonomy.cdm.model.taxon.Synonym">
181
            </instanceof>
182
         </possibleChildren>
183
      </navigatorContent>
184
   </extension>
185
   <extension
186
         point="org.eclipse.ui.navigator.viewer">
187
      <viewer
188
            viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
189
         <popupMenu
190
               id="eu.etaxonomy.taxeditor.navigation.navigatorpopup">
191
         </popupMenu>
192
      </viewer>
193
      <viewerContentBinding viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
194
         <includes>
195
            <contentExtension
196
                  pattern="eu.etaxonomy.taxeditor.navigation.classificationContent">
197
            </contentExtension>
198
            <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxonNodeContent"/>
199
            <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper"/>
200
            <contentExtension
201
                  pattern="eu.etaxonomy.taxeditor.navigation.synonymContent">
202
            </contentExtension>
203
         </includes>
204
      </viewerContentBinding>
205
      <dragAssistant
206
               class="eu.etaxonomy.taxeditor.navigation.navigator.dnd.TaxonNavigatorDragAdapterAssistant"
207
               viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
208
      </dragAssistant>
209
   </extension>
210
   <extension
211
         point="org.eclipse.ui.navigator.linkHelper">
212
      <linkHelper
213
            class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonLinkHelper"
214
            id="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper">
215
          <selectionEnablement>
216
             <instanceof value="eu.etaxonomy.cdm.model.taxon.TaxonNode"/>
217
          </selectionEnablement>            
218
         <editorInputEnablement>
219
         	<instanceof value="eu.etaxonomy.taxeditor.editor.TaxonEditorInput"/>
220
         </editorInputEnablement>
221
      </linkHelper>
222
   </extension>
223
   <extension
224
         point="org.eclipse.core.runtime.adapters">
225
      <factory
226
            adaptableType="org.eclipse.core.internal.resources.Workspace"
227
            class="eu.etaxonomy.taxeditor.navigation.WorkbenchUndoContextAdapterFactory">
228
         <adapter
229
               type="org.eclipse.core.commands.operations.IUndoContext">
230
         </adapter>
231
      </factory>
232
   </extension>
233
      <extension
234
         point="org.eclipse.core.expressions.propertyTesters">
235
      <propertyTester
236
            class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
237
            id="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
238
            namespace="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
239
            properties="hasSynonyms, isClassification"
240
            type="java.lang.Object">
241
      </propertyTester>
242
      
243
     <propertyTester
244
             class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
245
            id="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
246
            namespace="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
247
            properties="hasTaxa"
248
            type="eu.etaxonomy.cdm.model.taxon.TaxonomicTree">
249
      </propertyTester>
250
      <propertyTester
251
             class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
252
            id="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
253
            namespace="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
254
            properties="hasTaxa"
255
            type="eu.etaxonomy.cdm.model.taxon.TaxonNode">
256
      </propertyTester>
257
   <propertyTester
258
         class="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester"
259
         id="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester"
260
         namespace="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester"
261
         properties="isCdmStoreConnected,isRemoting,isStandAlone"
262
         type="java.lang.Object">
263
   </propertyTester>
264
   </extension>
265
   <extension
266
         point="org.eclipse.core.expressions.definitions">
267
      <definition
268
            id="isTaxonNode">
269
         <with
270
               variable="selection">
271
            <iterate
272
                  ifEmpty="false">
273
               <instanceof
274
                     value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
275
               </instanceof>
276
            </iterate>
277
         </with>
278
      </definition>
279
      <definition
280
            id="isSynonymNode">
281
         <with
282
               variable="selection">
283
            <iterate
284
                  ifEmpty="false">
285
               <instanceof
286
                     value="eu.etaxonomy.cdm.model.taxon.Synonym">
287
               </instanceof>
288
            </iterate>
289
         </with>
290
      </definition>
291
     
292
      <definition
293
            id="isChecklistEditorEnabled">
294
         <with
295
               variable="selection">
296
            <test
297
                  property="eu.etaxonomy.taxeditor.preferences.propertyTester.isChecklistEditorEnabled">
298
            </test>
299
         </with>
300
      </definition>
301
      <definition
302
            id="isCdmStoreConnected">
303
         <test
304
               property="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester.isCdmStoreConnected">
305
         </test>
306
      </definition>
307
      <definition
308
            id="isRemoting">
309
         <test
310
               property="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester.isRemoting">
311
         </test>
312
      </definition>
313
      <definition
314
            id="isStandAlone">
315
         <test
316
               property="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester.isStandAlone">
317
         </test>
318
      </definition>
319
   </extension>
320
   <extension
321
         id="eu.etaxonomy.taxeditor.navigation.workbench.model"
322
         name="Navigation Workbench Model"
323
         point="org.eclipse.e4.workbench.model">
324
      <fragment
325
            apply="always"
326
            uri="fragment.e4xmi">
327
      </fragment>
328
   </extension>
329
</plugin>
(6-6/7)