blob: 3ba0cc7c9fbeca0a8d5427939d7139fd98111c6b (
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
|
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension-point id="org.eclipse.papyrus.infra.services.controlmode.participant" name="participant" schema="schema/participant.exsd"/>
<extension
point="org.eclipse.ui.commands">
<command
defaultHandler="org.eclipse.papyrus.infra.services.controlmode.handlers.ControlCommandHandler"
description="Move this submodel into its own resource (file)"
id="org.eclipse.papyrus.infra.services.controlmode.createsubmodel"
name="Create submodel unit">
</command>
<command
defaultHandler="org.eclipse.papyrus.infra.services.controlmode.handlers.UncontrolCommandHandler"
description="Reintegrate this submodel into the resource (file) of the parent model"
id="org.eclipse.papyrus.infra.services.controlmode.reintegratesubmodel"
name="Reintegrate submodel unit into parent model">
</command>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
allPopups="false"
locationURI="popup:org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup?after=tools">
<command
commandId="org.eclipse.papyrus.infra.services.controlmode.createsubmodel"
icon="icons/CreateSubModel_16.png"
label="Create submodel unit"
style="push"
tooltip="Move this submodel into its own resource (file)">
<visibleWhen
checkEnabled="false">
<with
variable="selection">
<test
forcePluginActivation="true"
property="org.eclipse.papyrus.infra.services.controlmode.isFragmentModel"
value="false">
</test>
</with>
</visibleWhen>
</command>
<command
commandId="org.eclipse.papyrus.infra.services.controlmode.reintegratesubmodel"
icon="icons/ReintegrateSubModel_16.png"
label="Reintegrate submodel unit into parent model"
style="push"
tooltip="Reintegrate this submodel into the resource (file) of the parent model">
<visibleWhen
checkEnabled="false">
<with
variable="selection">
<and>
<test
forcePluginActivation="true"
property="org.eclipse.papyrus.infra.services.controlmode.isFragmentModel"
value="true">
</test>
<test
forcePluginActivation="true"
property="org.eclipse.papyrus.infra.services.controlmode.isParentLoaded"
value="true">
</test>
</and>
</with>
</visibleWhen>
</command>
</menuContribution>
</extension>
<extension
point="org.eclipse.core.expressions.propertyTesters">
<propertyTester
class="org.eclipse.papyrus.infra.services.controlmode.IsControlledFragmentTester"
id="org.eclipse.papyrus.infra.services.controlmode"
namespace="org.eclipse.papyrus.infra.services.controlmode"
properties="isFragmentModel,isParentLoaded"
type="org.eclipse.jface.viewers.IStructuredSelection">
</propertyTester>
</extension>
<extension
point="org.eclipse.papyrus.infra.services.controlmode.participant">
<participant
class="org.eclipse.papyrus.infra.services.controlmode.participants.SashControlParticipant">
</participant>
</extension>
</plugin>
|