Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: f8e452634cce06f8da4b2e5ddbd677d15e1c3cdf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>

<!--
##########################################################################################
# Copyright (c) 2008, 2015 Conselleria de Infraestructuras y Transporte, Generalitat de la Comunitat Valenciana, Christian W. Damus, and others.
# All rights reserved. This program  and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
# 
# Contributors:
#   Francisco Javier Cano Mu├▒oz (Prodevelop) - initial API implementation
#   Christian W. Damus - bug 433206
#
########################################################################################
-->

<plugin>
	<extension-point id="modelToEditorMap" name="ModelToEditorMap" schema="schema/modelToEditorMap.exsd"/>
 <extension-point id="editorAssistantProvider" name="editorAssistantProvider" schema="schema/editorAssistantProvider.exsd"/>
 <extension-point id="viewInfo" name="viewInfo" schema="schema/viewInfo.exsd"/>
 <extension-point id="moskittEditorFactory" name="moskittEditorFactory" schema="schema/moskittEditorFactory.exsd"/>
 <extension-point id="aspectToolProvider" name="aspectToolProvider" schema="schema/aspectToolProvider.exsd"/>
 <extension-point id="htmlRendererContributor" name="htmlRendererContributor" schema="schema/htmlRendererContributor.exsd"/>
      
      <extension point="org.eclipse.ui.views">
   <category 
	id="org.eclipse.papyrus.views.category"
	name="Papyrus">
   </category>
   
</extension>

<extension
      point="org.eclipse.gmf.runtime.diagram.ui.paletteProviders">
   <paletteProvider
         class="org.eclipse.gmf.runtime.diagram.ui.providers.DefaultPaletteProvider">
      <Priority
            name="Highest">
      </Priority>
      <contribution>
         <predefinedEntry
               id="standardGroup/noteStack/noteTool"
               remove="true">
         </predefinedEntry>
         <predefinedEntry
               id="standardGroup/noteStack/textTool"
               remove="true">
         </predefinedEntry>
         <predefinedEntry
               id="standardGroup/noteStack/noteattachmentTool"
               remove="true">
         </predefinedEntry>
      </contribution>
      <editor
            class="org.eclipse.papyrus.uml.diagram.common.part.UmlGmfDiagramEditor(org.eclipse.papyrus.uml.diagram.common)">
      </editor>
   </paletteProvider>
</extension>

<extension
	point="org.eclipse.ui.views.properties.tabbed.propertySections">
	<propertySections contributorId="TreeOutlinePage">
		<propertySection
			afterSection=""
	   		class="org.eclipse.papyrus.uml.diagram.common.sheet.UMLPropertySection"
	  		id="AdvancedProperty"
	   		tab="advanced">
	   		<input type="java.lang.Object"/>
		</propertySection>
	</propertySections>
</extension>
<!-- The class doesn't exist
<extension
      point="org.eclipse.ui.startup">
   <startup
         class="org.eclipse.papyrus.uml.diagram.common.Startup"></startup>
</extension>
-->
<extension
      point="org.eclipse.ui.menus">

	<menuContribution locationURI="popup:org.eclipse.gmf.runtime.diagram.ui.DiagramEditorContextMenu?endof=fileMenu"
		allPopups="false">
   <!--menuContribution
         locationURI="popup:org.eclipse.gmf.runtime.diagram.ui.DiagramEditorContribution"-->
      <command
            commandId="org.eclipse.papyrus.uml.diagram.commands.LoadResourceAction"
            label="Load resource..."
            style="push">
         <visibleWhen>
            <or>
               <with
                     variable="activePartId">
                  <equals
                        value="org.eclipse.papyrus.infra.core.papyrusEditor">
                  </equals>
               </with>
            </or>
         </visibleWhen>
      </command>
   </menuContribution>
</extension>
<extension
      point="org.eclipse.ui.commands">
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         defaultHandler="org.eclipse.papyrus.uml.diagram.common.actions.LoadResourceAction"
         id="org.eclipse.papyrus.uml.diagram.commands.LoadResourceAction"
         name="Load Resource">
   </command>
</extension>
<extension
      point="org.eclipse.papyrus.infra.core.modelListener">
   <listener
         description="This listener listens for profile (un)applications to update the palette"
         name="PaletteProfileApplicationListener"
         realization="org.eclipse.papyrus.uml.diagram.common.service.PaletteProfileApplicationListener">
   </listener>
</extension>
<extension
      point="org.eclipse.papyrus.infra.ui.papyrusDiagram">
   <actionBarContributor
         id="org.eclipse.papyrus.uml.diagram.common.part.UMLDiagramActionBarContributor"
         implementingClass="org.eclipse.papyrus.uml.diagram.common.part.UMLDiagramActionBarContributor">
   </actionBarContributor>
</extension>

<extension
      point="org.eclipse.papyrus.infra.gmfdiag.common.pasteCommandProvider">
   <PasteCommandProvider
         priority="Lowest"
         realization="org.eclipse.papyrus.uml.diagram.common.providers.DefaultPasteCommandProvider">
   </PasteCommandProvider>
</extension>

<!-- Property tester to check the nature (UML Model or Profile) of currently opened project -->  
<extension
		point="org.eclipse.core.expressions.propertyTesters">
	<propertyTester
		class="org.eclipse.papyrus.uml.diagram.common.util.UMLSelectionTester"
		id="org.eclipse.papyrus.UMLSelectionTester"
		namespace="org.eclipse.papyrus.UMLSelectionTester"
		properties="isUMLModel, isUMLProfile"
		type="org.eclipse.jface.viewers.ISelection">
	</propertyTester>
 <propertyTester
       class="org.eclipse.papyrus.uml.diagram.common.util.UMLModelTester"
       id="org.eclipse.papyrus.UMLModelTester"
       namespace="org.eclipse.papyrus.UMLModelTester"
       properties="isUMLModel, isUMLProfile"
       type="org.eclipse.ui.IWorkbenchPart">
 </propertyTester>
</extension>

<!-- Reusable test definitions verifying:
	- Papyrus is the active editor
	- The model root element is a UML Model or Profile 
  -->
<extension
		point="org.eclipse.core.expressions.definitions">
	
	<definition id="org.eclipse.papyrus.uml.diagram.common.IsPapyrusActiveWithUMLModel">
    <with
          variable="activePart">
       <test
             forcePluginActivation="true"
             property="org.eclipse.papyrus.UMLModelTester.isUMLModel"
             value="true">
       </test>
    </with>
	</definition>
	
	<definition id="org.eclipse.papyrus.uml.diagram.common.IsPapyrusActiveWithUMLProfile">
    <with
          variable="activePart">
       <test
             forcePluginActivation="true"
             property="org.eclipse.papyrus.UMLModelTester.isUMLProfile"
             value="true">
       </test>
    </with>
	</definition>
</extension>

<!-- The location is based on menu id defined in GMF runtime 
	 (see org.eclipse.gmf.runtime.diagram.ui.actions.ActionIds and
	 org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContributionItemProvider) -->
<extension point="org.eclipse.ui.menus">

	<menuContribution locationURI="popup:org.eclipse.gmf.runtime.diagram.ui.DiagramEditorContextMenu?endof=editMenu"
		allPopups="false">


		
  <separator
        name="org.eclipse.papyrus.uml.diagram.common.commands.LoadSeparator">
  </separator>
  <command
        commandId="org.eclipse.papyrus.uml.diagram.common.commands.Load"
        icon="icons/obj16/LoadResource.gif"
        label="Load"
        style="push">
     <visibleWhen>
        <and>
           <with
                 variable="activeEditorId">
              <equals
                    value="org.eclipse.papyrus.infra.core.papyrusEditor">
              </equals>
           </with>
           <with
                 variable="selection">
              <and>
                  <iterate
                        ifEmpty="false"
                        operator="and">
                     <instanceof
                           value="org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart">
                     </instanceof>
                  </iterate>
                  <test
                        forcePluginActivation="true"
                        property="org.eclipse.papyrus.infra.core.resourceloading.tester.isAllNotLoaded"
                        value="true" />
              </and>
           </with>
        </and>
     </visibleWhen>
  </command>
  <command
        commandId="org.eclipse.papyrus.uml.diagram.common.commands.Unload"
        icon="icons/obj16/UnloadResource.gif"
        label="Unload"
        style="push">
     <visibleWhen>
        <and>
           <with
                 variable="activeEditorId">
              <equals
                    value="org.eclipse.papyrus.infra.core.papyrusEditor">
              </equals>
           </with>
           <with
                 variable="selection">
              <and>
                  <iterate
                        ifEmpty="false"
                        operator="and">
                     <instanceof
                           value="org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart">
                     </instanceof>
                  </iterate>
                  <test
                        forcePluginActivation="true"
                        property="org.eclipse.papyrus.infra.core.resourceloading.tester.isAllLoaded"
                        value="true" />
              </and>
           </with>
        </and>
     </visibleWhen>
  </command>

	</menuContribution>
</extension>

<extension point="org.eclipse.ui.commands">

	<command
		categoryId="org.eclipse.papyrus.editor.category"
		defaultHandler="org.eclipse.papyrus.uml.diagram.common.handlers.LoadHandler"
		description="Load the corresponding submodel"
		id="org.eclipse.papyrus.uml.diagram.common.commands.Load"
		name="Load">
	</command>
	<command
		categoryId="org.eclipse.papyrus.editor.category"
		defaultHandler="org.eclipse.papyrus.uml.diagram.common.handlers.UnloadHandler"
		description="Unload the corresponding submodel"
		id="org.eclipse.papyrus.uml.diagram.common.commands.Unload"
		name="Unload">
	</command>
</extension>

<extension
      point="org.eclipse.ui.services">
   <sourceProvider
         provider="org.eclipse.papyrus.uml.diagram.common.providers.ActionStateSourceProvider">
      <variable
            name="renameNamedElement"
            priorityLevel="workbench">
      </variable>
   </sourceProvider>
</extension>
<extension
      point="org.eclipse.ui.handlers">
   <handler
         class="org.eclipse.papyrus.uml.diagram.common.handlers.RenamedElementHandler"
         commandId="org.eclipse.ui.edit.rename">
      <activeWhen>
         <and>
            <with
                  variable="renameNamedElement">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
</extension>
<!--Declare a property tester. The tested properties allow to enable/disable handlers which listen these properties   -->
<extension
      point="org.eclipse.core.expressions.propertyTesters">
   <propertyTester
         class="org.eclipse.papyrus.uml.diagram.common.util.DiagramTester"
         id="org.eclipse.papyrus.uml.diagram.common.diagram.tester"
         namespace="org.eclipse.papyrus.uml.diagram.common.diagram.tester"
         properties="diagramType"
         type="org.eclipse.ui.IEditorPart">
   </propertyTester>
</extension>
<extension
      point="org.eclipse.gmf.runtime.common.ui.services.action.globalActionHandlerProviders">
   <GlobalActionHandlerProvider
         class="org.eclipse.papyrus.uml.diagram.common.providers.CustomDiagramWithPrintGlobalActionHandlerProvider"
         id="GenericDiagramActionHandlerProvider">
      <Priority
            name="Low">
      </Priority>
      <ViewId
            id="org.eclipse.papyrus.infra.core.papyrusEditor">
         <ElementType
               class="org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart">
            <GlobalActionId
                  actionId="save">
            </GlobalActionId>
            <GlobalActionId
                  actionId="print">
            </GlobalActionId>
         </ElementType>
      </ViewId>
   </GlobalActionHandlerProvider>
   <GlobalActionHandlerProvider
         class="org.eclipse.papyrus.uml.diagram.common.providers.PapyrusGlobalActionHandlerProvider"
         id="PapyrusDiagramActionHandlerProvider">
      <Priority
            name="Low">
      </Priority>
      <ViewId
            id="org.eclipse.papyrus.infra.core.papyrusEditor">
         <ElementType
               class="org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart">
            <GlobalActionId
                  actionId="delete">
            </GlobalActionId>
            <GlobalActionId
                  actionId="cut">
            </GlobalActionId>
            <GlobalActionId
                  actionId="copy">
            </GlobalActionId>
            <GlobalActionId
                  actionId="paste">
            </GlobalActionId>
         </ElementType>
      </ViewId>
   </GlobalActionHandlerProvider>
   <GlobalActionHandlerProvider
         class="org.eclipse.gmf.runtime.diagram.ui.providers.ide.providers.DiagramIDEGlobalActionHandlerProvider"
         id="IDEDiagramActionHandlerProvider">
      <Priority
            name="Low">
      </Priority>
      <ViewId
            id="org.eclipse.papyrus.infra.core.papyrusEditor">
         <ElementType
               class="org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart">
            <GlobalActionId
                  actionId="bookmark">
            </GlobalActionId>
         </ElementType>
      </ViewId>
   </GlobalActionHandlerProvider>
</extension>
<extension
      point="org.eclipse.gmf.runtime.diagram.ui.editpolicyProviders">
   <editpolicyProvider
         class="org.eclipse.papyrus.uml.diagram.common.providers.CommentEditPolicyProvider">
      <Priority
            name="Lowest">
      </Priority>
   </editpolicyProvider>
   <editpolicyProvider
         class="org.eclipse.papyrus.uml.diagram.common.providers.CustomEditPolicyProvider">
      <Priority
            name="Lowest">
      </Priority>
   </editpolicyProvider>
   <editpolicyProvider
         class="org.eclipse.papyrus.uml.diagram.common.providers.ImportedElementEditPolicyProvider">
      <Priority
            name="Low">
      </Priority>
   </editpolicyProvider>
</extension>
<extension
      point="org.eclipse.papyrus.infra.gmfdiag.common.pasteStrategy">
   <strategy
         strategy="org.eclipse.papyrus.uml.diagram.common.strategy.paste.StereotypePasteStrategy">
   </strategy>
   <strategy
         strategy="org.eclipse.papyrus.uml.diagram.common.strategy.paste.RenamePasteStrategy">
   </strategy>
   <strategy
         strategy="org.eclipse.papyrus.uml.diagram.common.strategy.paste.ConstraintPasteStrategy">
   </strategy>
   <strategy
         strategy="org.eclipse.papyrus.uml.diagram.common.strategy.paste.InternationalizationPasteStrategy">
   </strategy>
</extension>
<extension
      point="org.eclipse.papyrus.infra.gmfdiag.common.copyStrategy">
   <strategy
         strategy="org.eclipse.papyrus.uml.diagram.common.strategy.copy.AllContentCopyStrategy">
   </strategy>
   <strategy
         strategy="org.eclipse.papyrus.uml.diagram.common.strategy.copy.RootOnlyCopyStrategy">
   </strategy>
</extension>
<extension
      point="org.eclipse.ui.preferencePages">
   <page
         category="org.eclipse.papyrus.infra.gmfdiag.paste.preferences"
         class="org.eclipse.papyrus.uml.diagram.common.preferences.StereotypePasteStrategyPreferencePage"
         id="org.eclipse.papyrus.uml.diagram.common.StereotypePasteStrategyPreferencePage"
         name="Stereotype Strategy">
   </page>
</extension>
<extension
      point="org.eclipse.core.runtime.preferences">
   <initializer
         class="org.eclipse.papyrus.uml.diagram.common.preferences.StereotypePasteStrategyPreferenceInitializer">
   </initializer>
</extension>
<extension
      point="org.eclipse.papyrus.infra.gmfdiag.canonical.strategies">
   <defaultSemanticChildrenStrategy
         class="org.eclipse.papyrus.uml.diagram.common.canonical.DefaultUMLSemanticChildrenStrategy"
         priority="10">
      <enablement>
         <with
               variable="element">
            <instanceof
                  value="org.eclipse.uml2.uml.Element">
            </instanceof>
         </with>
      </enablement>
   </defaultSemanticChildrenStrategy>
   <visualChildrenStrategy
         class="org.eclipse.papyrus.uml.diagram.common.canonical.DefaultUMLVisualChildrenStrategy"
         priority="10">
      <enablement>
         <with
               variable="element">
            <instanceof
                  value="org.eclipse.uml2.uml.Element">
            </instanceof>
         </with>
      </enablement>
   </visualChildrenStrategy>
</extension>
<extension
      point="org.eclipse.papyrus.infra.hyperlink.hyperlinkContributor">
      <contributor
            contributor="org.eclipse.papyrus.uml.diagram.common.hyperlink.DirectedRelationshipTargetHyperlinkContributor"
            description="Creates hyperlinks referencing targets of directed relationships for which the clicked element is a source"
            id="org.eclipse.papyrus.uml.diagram.common.DirectedRelationshipTargetHyperlinkContributor"
            label="Directed relationship target hyperlinks">
      </contributor>
      <contributor
            contributor="org.eclipse.papyrus.uml.diagram.common.hyperlink.DirectedRelationshipSourceHyperlinkContributor"
            description="Creates hyperlinks referencing sources of directed relationships for which the clicked element is a target"
            id="org.eclipse.papyrus.uml.diagram.common.DirectedRelationshipSourceHyperlinkContributor"
            label="Directed relationship source hyperlinks">
      </contributor>
      <contributor
            contributor="org.eclipse.papyrus.uml.diagram.common.hyperlink.DirectedRelationshipTargetEndHyperlinkContributor"
            description="Creates hyperlinks referencing target ends of double-clicked directed relationship"
            id="org.eclipse.papyrus.uml.diagram.common.DirectedRelationshipTargetEndHyperlinkContributor"
            label="Directed relationship target end hyperlinks">
      </contributor>
      <contributor
            contributor="org.eclipse.papyrus.uml.diagram.common.hyperlink.DirectedRelationshipSourceEndHyperlinkContributor"
            description="Creates hyperlinks referencing source ends of double-clicked directed relationship"
            id="org.eclipse.papyrus.uml.diagram.common.DirectedRelationshipSourceEndHyperlinkContributor"
            label="Directed relationship source end hyperlinks">
      </contributor>
</extension>
 <extension
         point="org.eclipse.papyrus.uml.diagram.common.htmlRendererContributor">
      <contributor
            contributor="org.eclipse.papyrus.uml.diagram.common.figure.node.RichTextRenderer"
            description="Renders the HTML produced from the rich text editor widget"
            id="org.eclipse.papyrus.uml.diagram.common.figure.node.RichTextRenderer"
            label="Rich Text Renderer">
      </contributor>
   </extension>
   <extension
       point="org.eclipse.papyrus.infra.gmfdiag.common.diagramReconciler">
    <diagramReconciler
          diagramType="AllDiagrams"
          reconcilerClass="org.eclipse.papyrus.uml.diagram.common.stereotype.migration.StereotypeDisplayDiagramReconciler_1_2_0"
          source="1.1.0"
          target="1.3.0">
    </diagramReconciler>
 </extension>
   <extension
         point="org.eclipse.ui.preferencePages">
      <page
            category="org.eclipse.papyrus.infra.core.sasheditor.preferences.generalcategory"
            class="org.eclipse.ui.internal.dialogs.EmptyPreferencePage"
            id="org.eclipse.papyrus.uml.diagram.common.automatedModelCompletionPreferencePage"
            name="Automated Model Completion">
      </page>
   </extension>
</plugin>

Back to the top