Project

General

Profile

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