blob: cf050305fe9128962464b39ad3aeed04bca1233e [file] [log] [blame]
Stephan Herrmann01664412010-04-01 20:28:43 +00001<?xml version="1.0" encoding="UTF-8"?>
2<?eclipse version="3.0"?>
3<plugin>
4
5<!-- Perspectives -->
6 <extension
7 point="org.eclipse.ui.perspectives">
8 <perspective
9 name="%perspectiveName"
10 icon="icons/ot/ot.png"
11 class="org.eclipse.objectteams.otdt.internal.ui.OTJavaPerspectiveFactory"
12 id="org.eclipse.objectteams.otdt.ui.OTJavaPerspective">
13 </perspective>
14 </extension>
15
16<!-- View category -->
17 <extension
18 point="org.eclipse.ui.views">
19 <category
20 id="org.eclipse.objectteams.otdt.ui"
21 name="Object Teams">
22 </category>
23 </extension>
24
25 <extension
26 point="org.eclipse.ui.perspectiveExtensions">
27 <perspectiveExtension
28 targetID="org.eclipse.objectteams.otdt.ui.OTJavaPerspective">
29
30 <!-- "Open Perspective" shows the Debug, Resource and OT-perspective -->
31 <perspectiveShortcut
32 id="org.eclipse.debug.ui.DebugPerspective">
33 </perspectiveShortcut>
34 <perspectiveShortcut
35 id="org.eclipse.ui.resourcePerspective">
36 </perspectiveShortcut>
37 <perspectiveShortcut
38 id="org.eclipse.objectteams.otdt.ui.OTJavaPerspective">
39 </perspectiveShortcut>
40 <view
41 id="org.eclipse.pde.runtime.LogView"
42 minimized="false"
43 relationship="stack"
44 relative="org.eclipse.ui.views.ProblemView">
45 </view>
46 <newWizardShortcut
47 id="org.eclipse.objectteams.otdt.ui.wizards.NewTeamCreationWizard">
48 </newWizardShortcut>
49 <newWizardShortcut
50 id="org.eclipse.objectteams.otdt.ui.wizards.NewRoleCreationWizard">
51 </newWizardShortcut>
52 <newWizardShortcut
53 id="org.eclipse.objectteams.otdt.ui.wizards.OTNewProjectWizard">
54 </newWizardShortcut>
55 <newWizardShortcut
56 id="org.eclispe.objectteams.otdt.pde.ui.wizards.OTNewPluginProjectWizard">
57 </newWizardShortcut>
58 <actionSet
59 id="org.eclipse.jdt.ui.text.java.actionSet.presentation">
60 </actionSet>
61 </perspectiveExtension>
62
63 <!-- Add our own perspective to the Resource, Java and Debug perspectives -->
64 <perspectiveExtension
65 targetID="org.eclipse.ui.resourcePerspective">
66 <perspectiveShortcut
67 id="org.eclipse.objectteams.otdt.ui.OTJavaPerspective">
68 </perspectiveShortcut>
69 </perspectiveExtension>
70
71 <perspectiveExtension
72 targetID="org.eclipse.jdt.ui.JavaPerspective">
73 <perspectiveShortcut
74 id="org.eclipse.objectteams.otdt.ui.OTJavaPerspective">
75 </perspectiveShortcut>
76 </perspectiveExtension>
77
78 <perspectiveExtension
79 targetID="org.eclipse.debug.ui.DebugPerspective">
80 <perspectiveShortcut
81 id="org.eclipse.objectteams.otdt.ui.OTJavaPerspective">
82 </perspectiveShortcut>
83 </perspectiveExtension>
84
85 </extension>
86
87<!-- Object Teams Wizards -->
88 <extension
89 point="org.eclipse.ui.newWizards">
90 <category
91 name="%ObjectTeams"
92 id="org.eclipse.objectteams.otdt.ui.wizards">
93 </category>
94 <wizard
95 name="%NewOTProject.label"
96 icon="icons/ot/wizard/newprj_wiz.gif"
97 category="org.eclipse.objectteams.otdt.ui.wizards"
98 class="org.eclipse.objectteams.otdt.internal.ui.wizards.OTNewProjectWizard"
99 preferredPerspectives="org.eclipse.objectteams.otdt.ui.OTJavaPerspective"
100 project="true"
101 finalPerspective="org.eclipse.objectteams.otdt.ui.OTJavaPerspective"
102 id="org.eclipse.objectteams.otdt.ui.wizards.OTNewProjectWizard">
103 <description>
104 %NewOTProject.description
105 </description>
106 </wizard>
107 <wizard
108 name="%NewTeam.label"
109 icon="icons/ot/newteam_obj.gif"
110 category="org.eclipse.objectteams.otdt.ui.wizards"
111 id="org.eclipse.objectteams.otdt.ui.wizards.NewTeamCreationWizard">
112 <class
113 class="org.eclipse.objectteams.otdt.internal.ui.wizards.NewTeamCreationWizard">
114 <parameter name="javatype" value="true"/>
115 </class>
116 <description>
117 %NewTeam.description
118 </description>
119 </wizard>
120 <wizard
121 name="%NewRole.label"
122 icon="icons/ot/newrole_obj.png"
123 category="org.eclipse.objectteams.otdt.ui.wizards"
124 id="org.eclipse.objectteams.otdt.ui.wizards.NewRoleCreationWizard">
125 <class
126 class="org.eclipse.objectteams.otdt.internal.ui.wizards.NewRoleCreationWizard">
127 <parameter name="javatype" value="true"/>
128 </class>
129 <description>
130 %NewRole.description
131 </description>
132 </wizard>
133 </extension>
134
135
136<!-- Object Teams Markers/Annotation: Callin, Callout, PlayedBy, OverridingRole -->
137 <extension
138 point="org.eclipse.core.resources.markers"
139 id="callinMarker"
140 name="Callin Marker">
141 <super type="org.eclipse.core.resources.textmarker"/>
142 <persistent value="false"/>
143 <attribute name="org.eclipse.objectteams.otdt.ui.markerAttr.CallinMapping"/>
144 </extension>
145 <extension
146 point="org.eclipse.core.resources.markers"
147 id="calloutMarker"
148 name="Callout Marker">
149 <super type="org.eclipse.core.resources.textmarker"/>
150 <persistent value="false"/>
151 <attribute name="org.eclipse.objectteams.otdt.ui.markerAttr.CalloutMapping"/>
152 </extension>
153 <extension
154 point="org.eclipse.core.resources.markers"
155 id="playedByMarker"
156 name="PlayedBy Marker">
157 <super type="org.eclipse.core.resources.textmarker"/>
158 <persistent value="false"/>
159 <attribute name="org.eclipse.objectteams.otdt.ui.markerAttr.PlayedByMapping"/>
160 </extension>
161
162 <extension
163 point="org.eclipse.ui.editors.annotationTypes">
164 <type
165 name="org.eclipse.objectteams.otdt.ui.annotationtypes.CallinMarker"
166 super="org.eclipse.jdt.ui.info"
167 markerType="org.eclipse.objectteams.otdt.ui.callinMarker">
168 </type>
169 <type
170 name="org.eclipse.objectteams.otdt.ui.annotationtypes.CalloutMarker"
171 super="org.eclipse.jdt.ui.info"
172 markerType="org.eclipse.objectteams.otdt.ui.calloutMarker">
173 </type>
174 <type
175 name="org.eclipse.objectteams.otdt.ui.annotationtypes.PlayedByMarker"
176 super="org.eclipse.jdt.ui.info"
177 markerType="org.eclipse.objectteams.otdt.ui.playedByMarker">
178 </type>
179 <type
180 name="org.eclipse.objectteams.otdt.ui.roleOverrideIndicator"/>
181 </extension>
182
183 <extension
184 point="org.eclipse.ui.editors.markerAnnotationSpecification">
185 <specification
186 annotationType="org.eclipse.objectteams.otdt.ui.annotationtypes.CallinMarker"
187 colorPreferenceKey="callinmarker.color"
188 colorPreferenceValue="120,159,79"
189 contributesToHeader="true"
190 highlightPreferenceKey="callinmarker.highlight"
191 icon="icons/ot/callinbinding_obj.gif"
192 includeOnPreferencePage="true"
193 isGoToNextNavigationTarget="true"
194 isGoToNextNavigationTargetKey="callinmarker.gotonext"
195 isGoToPreviousNavigationTarget="true"
196 isGoToPreviousNavigationTargetKey="callinmarker.gotoprev"
197 label="Callin bindings"
198 overviewRulerPreferenceKey="callinmarker.overview"
199 overviewRulerPreferenceValue="true"
200 presentationLayer="9"
201 showInNextPrevDropdownToolbarAction="true"
202 showInNextPrevDropdownToolbarActionKey="callinmarker.nextprev.action"
203 symbolicIcon="info"
204 textPreferenceKey="callinmarker.text"
205 textStylePreferenceKey="callinmarker.textstyle"
206 textStylePreferenceValue="NONE"
207 verticalRulerPreferenceKey="callinmarker.vertical"
208 verticalRulerPreferenceValue="true">
209 </specification>
210
211 <specification
212 annotationType="org.eclipse.objectteams.otdt.ui.annotationtypes.CalloutMarker"
213 colorPreferenceKey="calloutmarker.color"
214 colorPreferenceValue="120,159,79"
215 contributesToHeader="true"
216 highlightPreferenceKey="calloutmarker.highlight"
217 icon="icons/ot/callout_marker.gif"
218 includeOnPreferencePage="true"
219 isGoToNextNavigationTarget="true"
220 isGoToNextNavigationTargetKey="calloutmarker.gotonext"
221 isGoToPreviousNavigationTarget="true"
222 isGoToPreviousNavigationTargetKey="calloutmarker.gotoprev"
223 label="Decapsulating callout bindings"
224 overviewRulerPreferenceKey="calloutmarker.overview"
225 overviewRulerPreferenceValue="true"
226 presentationLayer="9"
227 showInNextPrevDropdownToolbarAction="true"
228 showInNextPrevDropdownToolbarActionKey="calloutmarker.nextprev.action"
229 symbolicIcon="info"
230 textPreferenceKey="calloutmarker.text"
231 textStylePreferenceKey="calloutmarker.textstyle"
232 textStylePreferenceValue="NONE"
233 verticalRulerPreferenceKey="calloutmarker.vertical"
234 verticalRulerPreferenceValue="true">
235 </specification>
236
237 <specification
238 annotationType="org.eclipse.objectteams.otdt.ui.annotationtypes.PlayedByMarker"
239 colorPreferenceKey="playedbymarker.color"
240 colorPreferenceValue="120,159,79"
241 contributesToHeader="true"
242 highlightPreferenceKey="playedbymarker.highlight"
243 icon="icons/ot/playedBy_obj.gif"
244 includeOnPreferencePage="true"
245 isGoToNextNavigationTarget="true"
246 isGoToNextNavigationTargetKey="playedbymarker.gotonext"
247 label="Role bindings"
248 overviewRulerPreferenceKey="playedbymarker.overview"
249 overviewRulerPreferenceValue="true"
250 presentationLayer="9"
251 symbolicIcon="info"
252 textPreferenceKey="playedbymarker.text"
253 textStylePreferenceKey="playedbymarker.teststyle"
254 textStylePreferenceValue="NONE"
255 verticalRulerPreferenceKey="playedbymarker.vertical"
256 verticalRulerPreferenceValue="true">
257 </specification>
258<!-- modelled after org.eclipse.jdt.ui.overrideIndicator (with which it still shares the preferences): -->
259 <specification
260 annotationType="org.eclipse.objectteams.otdt.ui.roleOverrideIndicator"
261 label="Role class override indicator"
262 icon="icons/jdt/full/obj16/over_co.gif"
263 textPreferenceKey="overrideIndicator"
264 textPreferenceValue="false"
265 highlightPreferenceKey="overrideIndicatorHighlighting"
266 highlightPreferenceValue="false"
267 contributesToHeader="false"
268 overviewRulerPreferenceKey="overrideIndicatorInOverviewRuler"
269 overviewRulerPreferenceValue="false"
270 verticalRulerPreferenceKey="overrideIndicatorInVerticalRuler"
271 verticalRulerPreferenceValue="true"
272 colorPreferenceKey="overrideIndicatorColor"
273 colorPreferenceValue="180,207,205"
274 presentationLayer="3"
275 showInNextPrevDropdownToolbarActionKey="showoverrideIndicatorInNextPrevDropdownToolbarAction"
276 showInNextPrevDropdownToolbarAction="false"
277 isGoToNextNavigationTargetKey="isOverrideIndicatorGoToNextNavigationTarget"
278 isGoToNextNavigationTarget="false"
279 isGoToPreviousNavigationTargetKey="isOverrideIndicatorGoToPreviousNavigationTarget"
280 textStylePreferenceKey="overrideIndicatorTextStyle"
281 textStylePreferenceValue="SQUIGGLES">
282 </specification>
283 </extension>
284
285 <extension
286 point="org.eclipse.ui.editorActions">
287 <editorContribution
288 id="org.eclipse.ui.texteditor.ruler.actions"
289 targetID="org.eclipse.jdt.ui.CompilationUnitEditor">
290 <action
291 actionID="RulerClick"
292 label="openteam"
293 class="org.eclipse.objectteams.otdt.ui.UpdateRulerAction"
294 id="org.eclipse.objectteams.otdt.refactoring.ui.actions.UpdateRulerAction">
295 </action>
296 </editorContribution>
297 <editorContribution
298 id="org.eclipse.ui.texteditor.ruler.actions"
299 targetID="org.eclipse.jdt.ui.ClassFileEditor">
300 <action
301 actionID="RulerClick"
302 label="openteam"
303 class="org.eclipse.objectteams.otdt.ui.UpdateRulerAction"
304 id="org.eclipse.objectteams.otdt.refactoring.ui.actions.UpdateRulerAction">
305 </action>
306 </editorContribution>
307 </extension>
308
309<!-- Object Teams Templates-->
310 <extension
311 point="org.eclipse.ui.editors.templates">
312 <contextType
313 name="%templates.java.contextType.name"
314 class="org.eclipse.jdt.internal.corext.template.java.JavaContextType"
315 id="java">
316 </contextType>
317 <contextType
318 name="%templates.javadoc.contextType.name"
319 class="org.eclipse.jdt.internal.corext.template.java.JavaDocContextType"
320 id="javadoc">
321 </contextType>
322 <resolver
323 class="org.eclipse.objectteams.otdt.internal.ui.templates.ParameterMappingTemplateResolver"
324 contextTypeId="java"
325 description="Resolver for callin parameter mappings"
326 name="callin parameter mapping"
327 type="callin_parameter_name">
328 </resolver>
329 <resolver
330 class="org.eclipse.objectteams.otdt.internal.ui.templates.ParameterMappingTemplateResolver"
331 contextTypeId="java"
332 description="Resolver for callout parameter mappings"
333 name="callout parameter mapping"
334 type="callout_parameter_name">
335 </resolver>
336 <include
337 file="templates/OT-templates.xml"
338 translations="templates/OT-templates.properties">
339 </include>
340 </extension>
341
342
343
344<!-- Configurable options for the OT/J compiler -->
345 <extension
346 point="org.eclipse.ui.preferencePages">
347 <page
348 id="org.eclipse.objectteams.otdt.ui.preferences.CompilerPreferencePage"
349 name="%OTCompilerPreferencePageName"
350 category="org.eclipse.jdt.ui.preferences.JavaBasePreferencePage"
351 class="org.eclipse.objectteams.otdt.internal.ui.preferences.OTCompilerPreferencePage">
352 <keywordReference id="org.eclipse.objectteams.otdt.ui.compliance"/>
353 </page>
354
355 <!-- General Object Teams configuration options -->
356 <page
357 id="org.eclipse.objectteams.otdt.ui.preferences.GeneralPreferencePage"
358 name="%OTGeneralPreferencePageName"
359 class="org.eclipse.objectteams.otdt.internal.ui.preferences.OTGeneralPreferencePage">
360 </page>
361
362 </extension>
363 <extension
364 point="org.eclipse.ui.propertyPages">
365 <page
366 class="org.eclipse.objectteams.otdt.internal.ui.preferences.OTCompilerPreferencePage"
367 icon="icons/ot/ot_bare_10.png"
368 id="org.eclipse.objectteams.otdt.ui.propertyPages.CompilerPreferencePage"
369 name="%OTCompilerPropertyPageName">
370 <filter name="nature"
371 value="org.eclipse.objectteams.otdt.OTJavaNature">
372 </filter>
373 <keywordReference id="org.eclipse.objectteams.otdt.ui.compliance"/>
374 <enabledWhen>
375 <or>
376 <instanceof
377 value="org.eclipse.core.resources.IProject">
378 </instanceof>
379 <instanceof
380 value="org.eclipse.jdt.core.IJavaProject">
381 </instanceof>
382 </or>
383 </enabledWhen>
384 </page>
385 </extension>
386 <extension
387 point="org.eclipse.ui.keywords">
388 <keyword
389 id="org.eclipse.objectteams.otdt.ui.compliance"
390 label="%preferenceKeywords.compiler.options"/>
391 </extension>
392 <!-- Binding Editor -->
393 <extension
394 point="org.eclipse.ui.menus">
395 <menuContribution
396 locationURI="popup:org.eclipse.ui.popup.any?before=group.open">
397 <command
398 commandId="org.eclipse.objectteams.otdt.ui.commands.openBindingEditor"
399 icon="icons/ot/calloutbinding_obj.gif"
400 style="push">
401 <visibleWhen
402 checkEnabled="true">
403 </visibleWhen>
404 </command>
405 </menuContribution>
406 </extension>
407 <extension
408 point="org.eclipse.ui.commands">
409 <command
410 id="org.eclipse.objectteams.otdt.ui.commands.openBindingEditor"
411 name="Open Binding Editor">
412 </command>
413 </extension>
414 <extension
415 point="org.eclipse.ui.handlers">
416 <handler
417 class="org.eclipse.objectteams.otdt.ui.handlers.OpenBindingEditorHandler"
418 commandId="org.eclipse.objectteams.otdt.ui.commands.openBindingEditor">
419 </handler>
420 </extension>
421 <!-- Compare callin method with base method: -->
422 <extension
423 point="org.eclipse.ui.menus">
424 <!-- Forward declaration of a menu declared the old way: -->
425 <menuContribution
426 locationURI="popup:org.eclipse.ui.popup.any">
427 <menu
428 id="compareWithMenu"
429 label="%CompareWithMenu.label">
430 <separator
431 name="compareWithGroup">
432 </separator>
433 </menu>
434 </menuContribution>
435 <!-- Hook this contribution into the above submenu: -->
436 <menuContribution
437 locationURI="popup:compareWithMenu?after=compareWithGroup">
438 <command
439 commandId="org.eclipse.objectteams.otdt.ui.commands.compareWithBaseMethod"
440 icon="icons/ot/callinbindingreplace_obj.gif"
441 style="push">
442 <visibleWhen
443 checkEnabled="true">
444 </visibleWhen>
445 </command>
446 </menuContribution>
447 </extension>
448 <extension
449 point="org.eclipse.ui.commands">
450 <command
451 description="%CompareWithBaseMethodAction.description"
452 id="org.eclipse.objectteams.otdt.ui.commands.compareWithBaseMethod"
453 name="%CompareWithBaseMethodAction.label">
454 </command>
455 </extension>
456 <extension
457 point="org.eclipse.ui.handlers">
458 <handler
459 class="org.eclipse.objectteams.otdt.ui.handlers.CompareWithBaseMethodHandler"
460 commandId="org.eclipse.objectteams.otdt.ui.commands.compareWithBaseMethod">
461 </handler>
462 </extension>
463<!--
464 <extension
465 point="org.eclipse.jdt.ui.foldingStructureProviders">
466 <provider
467 class="org.eclipse.objectteams.otdt.internal.ui.text.folding.OTJavaFoldingStructureProvider"
468 id="org.eclipse.objectteams.otdt.ui.foldingProvider"/>
469 </extension>
470-->
471</plugin>
472