blob: a16089b9f57ea363c3dbbd599fe3b672328cdccf [file] [log] [blame]
Alex Lagarde2868e972013-03-05 14:47:13 +01001<?xml version="1.0" encoding="UTF-8"?>
2<?eclipse version="3.4"?>
3
4<!--
5Copyright (c) 2011 Obeo.
6All rights reserved. This program and the accompanying materials
7are made available under the terms of the Eclipse Public License v1.0
8which accompanies this distribution, and is available at
9http://www.eclipse.org/legal/epl-v10.html
10
11Contributors:
12 Obeo - initial API and implementation
13-->
14
15<plugin>
16 <extension-point id="org.eclipse.mylyn.docs.intent.client.ui.ide.template.extension" name="org.eclipse.mylyn.docs.intent.client.ui.ide.template.extension" schema="schema/org.eclipse.mylyn.docs.intent.client.ui.ide.template.exsd"/>
17
18 <!-- EXTENSIONS OF THE PROJECT EXPLORER -->
19 <extension
20 point="org.eclipse.ui.navigator.viewer">
21 <viewer
22 helpContext="org.eclipse.ui.navigator.ProjectExplorer.help"
23 inheritBindingsFromViewer="org.eclipse.ui.navigator.ProjectExplorer"
24 viewerId="org.eclipse.ui.navigator.ProjectExplorer">
25 </viewer>
26 <viewerContentBinding
27 viewerId="org.eclipse.ui.navigator.ProjectExplorer">
28 <includes>
29 <contentExtension
30 isRoot="false"
31 pattern="org.eclipse.mylyn.docs.intent.client.ui.ide.RepositoryContent">
32 </contentExtension>
33 </includes>
34 </viewerContentBinding>
35
36 </extension>
37 <extension
38 point="org.eclipse.ui.navigator.navigatorContent">
39 <navigatorContent
40 activeByDefault="true"
Alex Lagarde43e4b722013-09-16 17:40:31 +020041 appearsBefore="org.eclipse.jdt.java.ui.javaContent"
Alex Lagarde2868e972013-03-05 14:47:13 +010042 contentProvider="org.eclipse.mylyn.docs.intent.client.ui.ide.navigator.RepositoryContentProvider"
43 icon="icon/ide/workspaceicon.gif"
44 id="org.eclipse.mylyn.docs.intent.client.ui.ide.RepositoryContent"
45 labelProvider="org.eclipse.mylyn.docs.intent.client.ui.ide.navigator.RepositoryLabelProvider"
46 name="Repository Content"
47 priority="highest"
48 providesSaveables="false">
49 <triggerPoints>
50 <or>
51 <adapt type="org.eclipse.core.resources.IProject">
Alex Lagarde43e4b722013-09-16 17:40:31 +020052 <test property="org.eclipse.core.resources.projectNature" value="org.eclipse.mylyn.docs.intent.client.ui.ide.intentNature"/>
Alex Lagarde2868e972013-03-05 14:47:13 +010053 </adapt>
54 </or>
55 </triggerPoints>
56 <possibleChildren>
Alex Lagarde43e4b722013-09-16 17:40:31 +020057 <or>
58 <instanceof
59 value="org.eclipse.emf.ecore.EObject">
60 </instanceof>
61 <adapt
62 type="org.eclipse.core.resources.IProject">
63 <test property="org.eclipse.core.resources.projectNature" value="org.eclipse.mylyn.docs.intent.client.ui.ide.intentNature"/>
64 </adapt>
65 </or>
Alex Lagarde2868e972013-03-05 14:47:13 +010066 </possibleChildren>
67 <actionProvider
68 class="org.eclipse.mylyn.docs.intent.client.ui.ide.navigator.RepositoryActionProvider">
69 </actionProvider>
Alex Lagarde82cc61c2013-03-08 11:56:16 +010070 <commonSorter
71 class="org.eclipse.mylyn.docs.intent.client.ui.ide.navigator.RepositoryContentSorter">
72 </commonSorter>
Alex Lagarde2868e972013-03-05 14:47:13 +010073 </navigatorContent>
74 </extension>
75 <extension
76 id="intentBuilder"
77 name="Intent Project Builder"
78 point="org.eclipse.core.resources.builders">
79 <builder
80 hasNature="true">
81 <run
82 class="org.eclipse.mylyn.docs.intent.client.ui.ide.builder.IntentBuilder">
83 </run>
84 </builder>
85 </extension>
86 <extension
87 id="intentNature"
88 name="Intent Project Nature"
89 point="org.eclipse.core.resources.natures">
90 <runtime>
91 <run
92 class="org.eclipse.mylyn.docs.intent.client.ui.ide.builder.IntentNature">
93 </run>
94 </runtime>
95 <builder
96 id="org.eclipse.mylyn.docs.intent.client.ui.ide.intentBuilder">
97 </builder>
98 </extension>
99 <extension
100 id="xmlProblem"
101 name="XML Problem"
102 point="org.eclipse.core.resources.markers">
103 <super
104 type="org.eclipse.core.resources.problemmarker">
105 </super>
106 <persistent
107 value="true">
108 </persistent>
109 </extension>
110 <extension
111 point="org.eclipse.ui.ide.projectNatureImages">
112 <image
113 icon="icon/ide/nature.gif"
114 id="org.eclipse.mylyn.docs.intent.client.ui.ide.intentNatureImage"
115 natureId="org.eclipse.mylyn.docs.intent.client.ui.ide.intentNature">
116 </image>
117 </extension>
118 <extension
119 point="org.eclipse.ui.newWizards">
120 <category
121 id="org.eclipse.mylyn.docs.intent.client.ui.ide"
122 name="Intent">
123 </category>
124 <wizard
125 category="org.eclipse.mylyn.docs.intent.client.ui.ide"
126 class="org.eclipse.mylyn.docs.intent.client.ui.ide.wizards.NewIntentProjectWizard"
127 icon="icon/ide/toggle_nature.gif"
128 id="org.eclipse.mylyn.docs.intent.client.ui.ide.wizards.NewIntentProjectWizard"
129 name="Intent project"
130 project="true">
131 </wizard>
132 </extension>
133 <extension
134 point="org.eclipse.mylyn.docs.intent.client.ui.ide.template.extension">
135 <IntentDocumentTemplate
136 description="A simple Intent document."
137 name="Default template"
138 template="templates/default.intent">
139 </IntentDocumentTemplate>
140 </extension>
141 <extension
142 point="org.eclipse.mylyn.docs.intent.client.ui.ide.template.extension">
143 <IntentDocumentTemplate
Alex Lagardea0fb0742013-03-19 15:21:25 +0100144 description="This templates helps initializing a documentation of a standard software (based on the TUFTE template)."
145 name="Standard Software Documentation Template"
Alex Lagarde2868e972013-03-05 14:47:13 +0100146 template="templates/software.intent">
147 </IntentDocumentTemplate>
148 </extension>
149 <extension
150 point="org.eclipse.mylyn.docs.intent.collab.repository.extension">
151 <Repository
152 id="org.eclipse.mylyn.docs.intent.collab.ide.repository"
153 repositoryCreatorClass="org.eclipse.mylyn.docs.intent.client.ui.ide.repository.IntentWorkspaceRepositoryCreator"
154 repositoryStructurerClass="org.eclipse.mylyn.docs.intent.client.ui.ide.repository.IntentWorkspaceRepositoryStructurer">
155 </Repository>
156 </extension>
157 <extension
158 point="org.eclipse.ui.menus">
159 <menuContribution
160 allPopups="false"
161 locationURI="popup:org.eclipse.ui.popup.any?after=additions">
162 <menu
163 icon="icon/ide/toggle_nature.gif"
164 id="org.eclipse.mylyn.docs.intent.client.ui.ide.menu"
165 label="Intent">
166 <visibleWhen
167 checkEnabled="false">
168 <test
169 forcePluginActivation="true"
170 property="org.eclipse.mylyn.docs.intent.client.ui.ide.isIntentStructuredElement"
171 value="true">
172 </test>
173 </visibleWhen>
174 </menu>
175 </menuContribution>
176 <menuContribution
177 allPopups="false"
178 locationURI="popup:org.eclipse.ui.projectConfigure?after=additions">
179 <command
180 commandId="org.eclipse.mylyn.docs.intent.client.ui.ide.addNatureCommand"
181 icon="icon/ide/toggle_nature.gif"
182 label="Add Intent Nature"
183 style="push"
184 tooltip="Toggle the Intent Nature on the selected project">
185 <visibleWhen
186 checkEnabled="false">
187 <iterate>
188 <adapt
189 type="org.eclipse.core.resources.IProject">
190 <and>
191 <not>
192 <test
193 property="org.eclipse.core.resources.projectNature"
194 value="org.eclipse.mylyn.docs.intent.client.ui.ide.intentNature">
195 </test>
196 </not>
197 <test
198 property="org.eclipse.core.resources.open"
199 value="true">
200 </test>
201 </and>
202 </adapt>
203 </iterate>
204 </visibleWhen>
205 </command>
206 <command
207 commandId="org.eclipse.mylyn.docs.intent.client.ui.ide.removeNatureCommand"
208 icon="icon/ide/toggle_nature.gif"
209 label="Remove Intent Nature"
210 style="push"
211 tooltip="Toggle the Intent Nature on the selected project">
212 <visibleWhen
213 checkEnabled="false">
214 <iterate>
215 <adapt
216 type="org.eclipse.core.resources.IProject">
217 <and>
218 <test
219 property="org.eclipse.core.resources.open"
220 value="true">
221 </test>
222 <test
223 property="org.eclipse.core.resources.projectNature"
224 value="org.eclipse.mylyn.docs.intent.client.ui.ide.intentNature">
225 </test>
226 </and>
227 </adapt>
228 </iterate>
229 </visibleWhen>
230 </command>
231 </menuContribution>
232 <menuContribution
233 allPopups="false"
234 locationURI="popup:org.eclipse.ui.views.ProblemView">
235 <menu
236 icon="icon/ide/toggle_nature.gif"
237 id="org.eclipse.mylyn.docs.intent.client.ui.ide.problemview"
238 label="Intent">
239 <command
240 commandId="org.eclipse.mylyn.docs.intent.client.ui.ide.problemview.show_editor"
241 label="Show in Intent Editor"
242 style="push">
243 <visibleWhen
244 checkEnabled="false">
245 <iterate
246 operator="and">
247 <test
248 forcePluginActivation="true"
249 property="org.eclipse.mylyn.docs.intent.client.ui.ide.isIntentProblemMarker">
250 </test>
251 </iterate>
252 </visibleWhen>
253 </command>
254 </menu>
255 </menuContribution>
256 </extension>
257 <extension
258 point="org.eclipse.ui.commands">
259 <command
260 categoryId="org.eclipse.ui.category.file"
261 defaultHandler="org.eclipse.mylyn.docs.intent.client.ui.ide.builder.ToggleNatureAction"
262 id="org.eclipse.mylyn.docs.intent.client.ui.ide.addNatureCommand"
263 name="Add Intent Nature">
264 </command>
265 <command
266 categoryId="org.eclipse.ui.category.file"
267 defaultHandler="org.eclipse.mylyn.docs.intent.client.ui.ide.builder.ToggleNatureAction"
268 id="org.eclipse.mylyn.docs.intent.client.ui.ide.removeNatureCommand"
269 name="Remove Intent Nature">
270 </command>
271 <command
272 category="org.eclipse.ui.views.problems"
273 categoryId="org.eclipse.ui.category.views"
274 defaultHandler="org.eclipse.mylyn.docs.intent.client.ui.ide.navigator.ShowProblemInEditorHandler"
275 id="org.eclipse.mylyn.docs.intent.client.ui.ide.problemview.show_editor"
276 name="Show in Intent Editor">
277 </command>
278 </extension>
279 <extension
280 point="org.eclipse.core.expressions.propertyTesters">
281 <propertyTester
282 class="org.eclipse.mylyn.docs.intent.client.ui.ide.propertytester.IsAssociatedToIntentDocumentTester"
283 id="org.eclipse.mylyn.docs.intent.IntentDocumentPropertyTester"
284 namespace="org.eclipse.mylyn.docs.intent.client.ui.ide"
285 properties="isIntentDocument"
286 type="java.lang.Object">
287 </propertyTester>
288 <propertyTester
289 class="org.eclipse.mylyn.docs.intent.client.ui.ide.propertytester.IsAssociatedToIntentStructuredElementTester"
290 id="org.eclipse.mylyn.docs.intent.IntentStructuredElementPropertyTester"
291 namespace="org.eclipse.mylyn.docs.intent.client.ui.ide"
292 properties="isIntentStructuredElement"
293 type="java.lang.Object">
294 </propertyTester>
295 <propertyTester
296 class="org.eclipse.mylyn.docs.intent.client.ui.ide.propertytester.IsIntentProblemMarker"
297 id="org.eclipse.mylyn.docs.intent.IntentProblemViewPropertyTester"
298 namespace="org.eclipse.mylyn.docs.intent.client.ui.ide"
299 properties="isIntentProblemMarker"
300 type="java.lang.Object">
301 </propertyTester>
302 </extension>
303 <extension
304 point="org.eclipse.mylyn.docs.intent.collab.common.repositorymanagercontribution">
305 <repositorymanagercontribution
306 class="org.eclipse.mylyn.docs.intent.client.ui.ide.repository.IntentProjectBasedRepositoryManagerContribution">
307 </repositorymanagercontribution>
308 </extension>
309
310 <extension
311 point="org.eclipse.ui.navigator.linkHelper">
312 <linkHelper
313 class="org.eclipse.mylyn.docs.intent.client.ui.ide.navigator.IntentLinkHelper"
314 id="org.eclipse.mylyn.docs.intent.client.ui.ide.linkhelper">
315 <editorInputEnablement>
316 <instanceof
317 value="org.eclipse.mylyn.docs.intent.client.ui.editor.IntentEditorInput">
318 </instanceof>
319 </editorInputEnablement>
320 <selectionEnablement>
321 <or>
322 <instanceof
323 value="org.eclipse.core.resources.IProject">
324 </instanceof>
325 <instanceof
326 value="org.eclipse.mylyn.docs.intent.core.indexer.IntentIndexEntry">
327 </instanceof>
328 </or>
329 </selectionEnablement>
330 </linkHelper>
331 </extension>
332 <extension
333 point="org.eclipse.ui.navigator.viewer">
334 <viewerContentBinding
335 viewerId="org.eclipse.ui.navigator.ProjectExplorer">
336 <includes>
337 <contentExtension
338 pattern="org.eclipse.mylyn.docs.intent.client.ui.ide.*">
339 </contentExtension>
340 </includes>
Alex Lagarde43e4b722013-09-16 17:40:31 +0200341 </viewerContentBinding>
342 <viewerContentBinding
343 viewerId="fr.obeo.dsl.viewpoint.ui.tools.views.model.explorer">
344 <includes>
345 <contentExtension
346 pattern="org.eclipse.mylyn.docs.intent.client.ui.ide.*">
347 </contentExtension>
348 </includes>
349 </viewerContentBinding>
Alex Lagarde2868e972013-03-05 14:47:13 +0100350 </extension>
351
352</plugin>