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