Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 38292af03616dc5b466ba42bf449dc6bc40fa584 (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
<?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.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.core.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.papyrus.infra.core.model">
      <modelSetSnippet
            classname="org.eclipse.papyrus.infra.services.controlmode.listener.LoadResourceSnippet"
            description="Snippet to attach listener on the resourceSet">
      </modelSetSnippet>
   </extension>
     <extension
         point="org.eclipse.ui.commands">
      <command
            defaultHandler="org.eclipse.papyrus.infra.services.controlmode.handler.ControlCommandHandler"
            description="Move this submodel into its own resource (file)"
            id="org.eclipse.papyrus.infra.services.controlmode.createsubmodel"
            name="Create submodel unit">
         <commandParameter
               id="org.eclipse.papyrus.infra.services.controlmode.useDialogParameter"
               name="Show control mode dialog"
               optional="true">
            <values
                  class="org.eclipse.papyrus.infra.services.controlmode.commands.ControlModeCommandParameterValues">
            </values>
         </commandParameter>
         <commandParameter
               id="org.eclipse.papyrus.infra.services.controlmode.resourceLocation"
               name="Resource Location"
               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="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"
               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"
               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.gmf.runtime.emf.type.core.elementTypeBindings">
    <binding
          context="org.eclipse.papyrus.infra.services.edit.TypeContext">
       <advice
             ref="org.eclipse.papyrus.infra.services.controlmode.advice.ControlModeAdviceHelper">
       </advice>
    </binding>
 </extension>
 <extension
       point="org.eclipse.gmf.runtime.emf.type.core.elementTypes">
    <metamodel
          nsURI="http://www.eclipse.org/emf/2002/Ecore">
       <adviceBinding
             class="org.eclipse.papyrus.infra.services.controlmode.helper.advice.ControlModeEditHelperAdvice"
             id="org.eclipse.papyrus.infra.services.controlmode.advice.ControlModeAdviceHelper"
             inheritance="all"
             typeId="*">
       </adviceBinding>
    </metamodel>
 </extension>
</plugin>

Back to the top