Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 96e3784ad480f89102e5099753a61f8150ae04a1 (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
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
   <extension-point id="org.eclipse.papyrus.infra.services.controlmode.participant" name="%extpt.participant.name" schema="schema/participant.exsd"/>
   <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.DiControlParticipant">
      </participant>
   </extension>
   <extension
         point="org.eclipse.papyrus.infra.core.service">
      <service
            classname="org.eclipse.papyrus.infra.services.controlmode.service.ControlModeService"
            id="org.eclipse.papyrus.infra.services.controlmode.service.ControlModeService"
            priority="9"
            startKind="startup">
         <dependsOn
               serviceKeyRef="org.eclipse.papyrus.infra.ui.lifecycleevents.ILifeCycleEventsProvider">
         </dependsOn>
         <dependsOn
               serviceKeyRef="org.eclipse.papyrus.infra.services.controlmode.service.IUncontrolledObjectsProvider">
         </dependsOn>
      </service>
      <serviceFactory
            classname="org.eclipse.papyrus.infra.services.controlmode.service.UncontrolledObjectsServiceFactory"
            id="org.eclipse.papyrus.infra.services.controlmode.service.IUncontrolledObjectsProvider"
            priority="1"
            startKind="startup">
      </serviceFactory>
   </extension>
     <extension
         point="org.eclipse.ui.commands">
      <command
            defaultHandler="org.eclipse.papyrus.infra.services.controlmode.handler.ControlCommandHandler"
            description="%cmd.control.desc"
            id="org.eclipse.papyrus.infra.services.controlmode.createsubmodel"
            name="%cmd.control.name">
         <commandParameter
               id="org.eclipse.papyrus.infra.services.controlmode.useDialogParameter"
               name="%cmd.control.showDlg.name"
               optional="true">
            <values
                  class="org.eclipse.papyrus.infra.services.controlmode.commands.ControlModeCommandParameterValues">
            </values>
         </commandParameter>
         <commandParameter
               id="org.eclipse.papyrus.infra.services.controlmode.resourceLocation"
               name="%cmd.control.resource.name"
               optional="true">
            <values
                  class="org.eclipse.papyrus.infra.services.controlmode.commands.ResourceLocationParameterValues">
            </values>
         </commandParameter>
      </command>
      <command
            defaultHandler="org.eclipse.papyrus.infra.services.controlmode.handler.UncontrolCommandHandler"
            description="%cmd.uncontrol.desc"
            id="org.eclipse.papyrus.infra.services.controlmode.reintegratesubmodel"
            name="%cmd.uncontrol.name">
      </command>
      <command
            defaultHandler="org.eclipse.papyrus.infra.services.controlmode.internal.handler.ToggleSubmodelHandler"
            description="%cmd.submodel.desc"
            id="org.eclipse.papyrus.infra.services.controlmode.toggleSubmodelStyle"
            name="%cmd.submodel.name">
         <state
               id="org.eclipse.ui.commands.toggleState"
               class="org.eclipse.papyrus.infra.services.controlmode.internal.handler.SubmodelState">
         </state>
      </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="%cmd.control.label"
               style="push"
               tooltip="%cmd.control.tip">
            <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="%cmd.uncontrol.label"
               style="push"
               tooltip="%cmd.uncontrol.tip">
            <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>
         <command
               commandId="org.eclipse.papyrus.infra.services.controlmode.toggleSubmodelStyle"
               label="%cmd.submodel.label"
               style="toggle"
               tooltip="%cmd.submodel.tip">
            <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.ui.decorators">
      <decorator
            class="org.eclipse.papyrus.infra.services.controlmode.internal.ui.ControlledUnitLabelDecorator"
            id="org.eclipse.papyrus.infra.services.controlmode.ui.ControlledUnit"
            label="%decorator.controlmode.label"
            lightweight="true"
            state="true">
         <description>
            %decorator.controlmode.desc
         </description>
         <enablement>
            <or>
               <objectClass
                     name="org.eclipse.core.resources.IFile">
               </objectClass>
               <objectClass
                     name="org.eclipse.papyrus.infra.onefile.model.IPapyrusFile">
               </objectClass>
            </or>
         </enablement>
      </decorator>
   </extension>
</plugin>

Back to the top