Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 25f575057ab3f5381f474eb1c2845efd5fc2f912 (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
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>

<!--
 <copyright>
 </copyright>

 $Id$
-->

<plugin>

   <extension point="org.eclipse.emf.ecore.generated_package">
      <package
            uri="http://www.eclipse.org/papyrus/2009/papyrusgmfgenextension"
            class="org.eclipse.papyrus.papyrusgmfgenextension.PapyrusgmfgenextensionPackage"
            genModel="model/papyrusGmfgenExtension.genmodel"/>
   </extension>
   <extension
         point="org.eclipse.ui.popupMenus">

            <objectContribution
            adaptable="true"
            id="org.eclipse.papyrus.papyrusgmfgenextension.popupactions"
            objectClass="org.eclipse.emf.ecore.EObject">
                    <menu
                          icon="icons/PapyrusLogo16x16.gif"
                          id="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.MenuPapyrus"
                          label="Papyrus GMFGen Tools"
                          path="papyrus">
                    </menu>
                    <action
                          class="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.AddNodeQualifiedNameBehavior"
                          enablesFor="*"
                          id="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.AddNodeQualifiedNameBehavior"
                          label="Add behavior to display qualified name"
                          menubarPath="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.MenuPapyrus/AddNodeQualifiedNameBehavior">
                       <enablement>
                          <objectClass
                                name="org.eclipse.gmf.codegen.gmfgen.GenNode">
                          </objectClass>
                       </enablement>
                    </action>
                 <action
                       class="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.AddNodeStereotypeDisplayBehavior"
                       enablesFor="*"
                       id="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.AddNodeStereotypeDisplayBehavior"
                       label="Add behavior to display applied stereotype for a node"
                       menubarPath="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.MenuPapyrus/AddNodeStereotypeDisplayBehavior">
                    <enablement>
                       <objectClass
                             name="org.eclipse.gmf.codegen.gmfgen.GenNode">
                       </objectClass>
                    </enablement>
                 </action>
                 <action
                       class="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.AddNodeShowHideCompartmentBehavior"
                       enablesFor="*"
                       id="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.AddNodeShowHideBehavior"
                       label="Add behavior to show/hide compartments"
                       menubarPath="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.MenuPapyrus/AddNodeShowHideBehavior">
                    <enablement>
                       <objectClass
                             name="org.eclipse.gmf.codegen.gmfgen.GenNode">
                       </objectClass>
                    </enablement>
                 </action>
                 <action
                       class="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.AddNodeShowHideContentsBehavior"
                       enablesFor="*"
                       id="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.AddNodeShowHideBehavior"
                       label="Add behavior to show/hide classifiers contents"
                       menubarPath="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.MenuPapyrus/AddNodeShowHideBehavior">
                    <enablement>
                       <objectClass
                             name="org.eclipse.gmf.codegen.gmfgen.GenNode">
                       </objectClass>
                    </enablement>
                 </action>
                 <action
                       class="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.AddNodeShowHideLabelsBehavior"
                       enablesFor="*"
                       id="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.AddNodeShowHideLabelBehavior"
                       label="Add behavior to show/hide labels"
                       menubarPath="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.MenuPapyrus/AddNodeShowHideBehavior">
                    <enablement>
                       <objectClass
                             name="org.eclipse.gmf.codegen.gmfgen.GenNode">
                       </objectClass>
                    </enablement>
                 </action>
               
                 <action
               class="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.AddGenLinkStereotypeDisplayBehavior"
               enablesFor="*"
               id="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.AddGenLinkStereotypeDisplayBehavior"
               label="Add label to display applied stereotype for a link"
               menubarPath="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.MenuPapyrus/AddGenLinkStereotypeDisplayBehavior">
                    <enablement>
                       <objectClass
                             name="org.eclipse.gmf.codegen.gmfgen.GenLink">
                       </objectClass>
                    </enablement>
         </action>
                 <action
                       class="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.AddExternalNodeStereotypeDisplayBehavior"
                       enablesFor="*"
                       id="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.AddExternalNodeStereotypeDisplayBehavior"
                       label="Add label to display applied stereotype as an external node label"
                       menubarPath="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.MenuPapyrus/AddExternalNodeStereotypeDisplayBehavior">
                    <enablement>
                       <objectClass
                             name="org.eclipse.gmf.codegen.gmfgen.GenNode">
                       </objectClass>
                    </enablement>
                 </action>
                 <action
                       class="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.AddHyperLinkPopupBarBehavior"
                       enablesFor="*"
                       id="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.AddHyperLinkPopupBarBehavior"
                       label="Add hyperlink PopupBar Behavior"
                       menubarPath="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.MenuPapyrus/AddHyperLinkPopupBarBehavior">
                    <enablement>
                       <objectClass
                             name="org.eclipse.gmf.codegen.gmfgen.GenNode">
                       </objectClass>
                    </enablement>
                 </action>
                          <action
               class="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.SetVisualIDWithUnusedValue"
               enablesFor="*"
               id="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.SetVisualIDWithUnusedValue"
               label="Set VisualID with unused value"
               menubarPath="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.MenuPapyrus/SetVisualIDWithUnusedValue">
                    <enablement>
                       <objectClass
                             name="org.eclipse.gmf.codegen.gmfgen.GenCommonBase">
                       </objectClass>
                    </enablement>
         </action>
                          <action
                                class="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.AddSmallAndLargeIconForPaletteAction"
                                enablesFor="*"
                                icon="icons/palette_view.gif"
                                id="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.addsmallandlargeiconstopalette"
                                label="Add Icons to Palette Elements"
                                menubarPath="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.MenuPapyrus/iconsManagement">
                             <enablement>
                                <or>
                                   <objectClass
                                         name="org.eclipse.gmf.codegen.gmfgen.ToolGroup">
                                   </objectClass>
                                   <objectClass
                                         name="org.eclipse.gmf.codegen.gmfgen.Palette">
                                   </objectClass>
                                   <objectClass
                                         name="org.eclipse.gmf.codegen.gmfgen.ToolEntry">
                                   </objectClass>
                                </or>
                             </enablement>
                          </action>
                          <action
                                class="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.AddOrUpdateCommentEditParts"
                                enablesFor="*"
                                icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Comment.gif"
                                id="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.AddOrUpdateCommentEditParts"
                                label="Update Comments For multi label management"
                                menubarPath="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.MenuPapyrus/AddOrUpdateCommentEditParts">
                             <enablement>
                                <objectClass
                                      name="org.eclipse.gmf.codegen.gmfgen.GenEditorGenerator">
                                </objectClass>
                             </enablement>
                          </action>
                          <action
                                class="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.AddDefaultNamedElementAction"
                                enablesFor="*"
                                icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Class.gif"
                                id="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.AddDefaultNamedElementAction"
                                label="Add DefaultNamedElement EditPart"
                                menubarPath="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.MenuPapyrus/AddHyperLinkPopupBarBehavior">
                             <enablement>
                                <or>
                                   <objectClass
                                         name="org.eclipse.gmf.codegen.gmfgen.GenEditorGenerator">
                                   </objectClass>
                                   <objectClass
                                         name="org.eclipse.gmf.codegen.gmfgen.GenDiagram">
                                   </objectClass>
                                </or>
                             </enablement>
                          </action>
                          <action
                                class="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.AddShapeNamedElementAction"
                                enablesFor="*"
                                icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Image.gif"
                                id="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.AddShapeNamedElementAction"
                                label="Add ShapeNamedElement EditPart"
                                menubarPath="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.MenuPapyrus/AddHyperLinkPopupBarBehavior">
                             <enablement>
                                <or>
                                   <objectClass
                                         name="org.eclipse.gmf.codegen.gmfgen.GenEditorGenerator">
                                   </objectClass>
                                   <objectClass
                                         name="org.eclipse.gmf.codegen.gmfgen.GenDiagram">
                                   </objectClass>
                                </or>
                             </enablement>
                          </action>
                          <action
                                class="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.SetCompartmentNeedsTitleToTrueAction"
                                icon="icons/none_comp_vis.gif"
                                id="org.eclipse.papyrus.gmfgenextension.action1"
                                label="Set Compartment &quot;Needs Title&quot; to true"
                                menubarPath="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.MenuPapyrus/AddHyperLinkPopupBarBehavior"
                                tooltip="Create Compartment Title Visibility Node (and change &quot;Needs Title&quot; to true)">
                                <enablement>
                                <or>
                                   <objectClass
                                         name="org.eclipse.gmf.codegen.gmfgen.GenCompartment">
                                   </objectClass>
                                </or>
                             </enablement>
                          </action>
                          
                           <action
                                class="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.AddSemanticElementTypeInGenericTopNode"
                                icon="icons/GenerateMetamodelType.gif"
                                id="org.eclipse.papyrus.gmfgenextension.addSemanticElementTypeInGenericTopNode"
                                label="Add Semantic Element Type In Generic Top Node"
                                menubarPath="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.MenuPapyrus/AddSemanticElementTypeInGenericTopNode"
                                tooltip="Generate Sermantic Metamodel types for UML metamodel">
                                <enablement>
                                <or>
                                   <objectClass
                                         name="org.eclipse.gmf.codegen.gmfgen.GenDiagram">
                                   </objectClass>
                                </or>
                             </enablement>
                          </action>
                           <action
                                 class="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.UpdateElementTypeToMatchGenericType"
                                 icon="icons/updateElementType.gif"
                                 id="org.eclipse.papyrus.gmfgenextension.updateElementTypeToMatchGenericType"
                                 label="Update ElementType To Match Generic Type"
                                 menubarPath="org.eclipse.papyrus.papyrusgmfgenextension.popupaction.MenuPapyrus/UpdateElementTypeToMatchGenericType"
                                 tooltip="Update ElementType To Match Generic Type">
                              <enablement>
                                 <or>
                                    <objectClass
                                          name="org.eclipse.gmf.codegen.gmfgen.MetamodelType">
                                    </objectClass>
                                    <objectClass
                                          name="org.eclipse.gmf.codegen.gmfgen.SpecializationType">
                                    </objectClass>
                                 </or>
                              </enablement>
                           </action>
      </objectContribution>
   </extension>

</plugin>

Back to the top