1 | /* |
2 | * Copyright 2006 SDQ Research Group, University of Karlsruhe (TH) |
3 | */ |
4 | package de.uka.ipd.sdq.pcm.gmf.seff.edit.parts; |
5 | |
6 | import java.util.ArrayList; |
7 | import java.util.List; |
8 | |
9 | import org.eclipse.draw2d.ColorConstants; |
10 | import org.eclipse.draw2d.ConnectionAnchor; |
11 | import org.eclipse.draw2d.Ellipse; |
12 | import org.eclipse.draw2d.EllipseAnchor; |
13 | import org.eclipse.draw2d.IFigure; |
14 | import org.eclipse.draw2d.MarginBorder; |
15 | import org.eclipse.draw2d.PositionConstants; |
16 | import org.eclipse.draw2d.Shape; |
17 | import org.eclipse.draw2d.StackLayout; |
18 | import org.eclipse.draw2d.geometry.Dimension; |
19 | import org.eclipse.gef.EditPart; |
20 | import org.eclipse.gef.EditPolicy; |
21 | import org.eclipse.gef.Request; |
22 | import org.eclipse.gef.commands.Command; |
23 | import org.eclipse.gef.editpolicies.LayoutEditPolicy; |
24 | import org.eclipse.gef.editpolicies.NonResizableEditPolicy; |
25 | import org.eclipse.gef.editpolicies.ResizableEditPolicy; |
26 | import org.eclipse.gef.requests.CreateRequest; |
27 | import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart; |
28 | import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart; |
29 | import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles; |
30 | import org.eclipse.gmf.runtime.emf.type.core.IElementType; |
31 | import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure; |
32 | import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure; |
33 | import org.eclipse.gmf.runtime.notation.View; |
34 | import org.eclipse.swt.graphics.Color; |
35 | |
36 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.policies.StopActionItemSemanticEditPolicy; |
37 | import de.uka.ipd.sdq.pcm.gmf.seff.providers.PalladioComponentModelElementTypes; |
38 | |
39 | /** |
40 | * @generated |
41 | */ |
42 | public class StopActionEditPart extends ShapeNodeEditPart { |
43 | |
44 | /** |
45 | * @generated |
46 | */ |
47 | public static final int VISUAL_ID = 2002; |
48 | |
49 | /** |
50 | * @generated |
51 | */ |
52 | protected IFigure contentPane; |
53 | |
54 | /** |
55 | * @generated |
56 | */ |
57 | protected IFigure primaryShape; |
58 | |
59 | /** |
60 | * @generated |
61 | */ |
62 | public StopActionEditPart(View view) { |
63 | super(view); |
64 | } |
65 | |
66 | /** |
67 | * @generated |
68 | */ |
69 | protected void createDefaultEditPolicies() { |
70 | super.createDefaultEditPolicies(); |
71 | installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, |
72 | new StopActionItemSemanticEditPolicy()); |
73 | installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy()); |
74 | // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies |
75 | // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE); |
76 | } |
77 | |
78 | /** |
79 | * @generated |
80 | */ |
81 | protected LayoutEditPolicy createLayoutEditPolicy() { |
82 | LayoutEditPolicy lep = new LayoutEditPolicy() { |
83 | |
84 | protected EditPolicy createChildEditPolicy(EditPart child) { |
85 | EditPolicy result = child |
86 | .getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE); |
87 | if (result == null) { |
88 | result = new NonResizableEditPolicy(); |
89 | } |
90 | return result; |
91 | } |
92 | |
93 | protected Command getMoveChildrenCommand(Request request) { |
94 | return null; |
95 | } |
96 | |
97 | protected Command getCreateCommand(CreateRequest request) { |
98 | return null; |
99 | } |
100 | }; |
101 | return lep; |
102 | } |
103 | |
104 | /** |
105 | * @generated |
106 | */ |
107 | protected IFigure createNodeShape() { |
108 | StopFigure figure = new StopFigure(); |
109 | return primaryShape = figure; |
110 | } |
111 | |
112 | /** |
113 | * @generated |
114 | */ |
115 | public StopFigure getPrimaryShape() { |
116 | return (StopFigure) primaryShape; |
117 | } |
118 | |
119 | /** |
120 | * @generated not |
121 | */ |
122 | protected NodeFigure createNodePlate() { |
123 | DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(getMapMode() |
124 | .DPtoLP(30), getMapMode().DPtoLP(20)) { |
125 | |
126 | @Override |
127 | protected ConnectionAnchor createDefaultAnchor() { |
128 | return new EllipseAnchor(this); |
129 | } |
130 | }; |
131 | return result; |
132 | } |
133 | |
134 | /** |
135 | * @generated |
136 | */ |
137 | public EditPolicy getPrimaryDragEditPolicy() { |
138 | EditPolicy result = super.getPrimaryDragEditPolicy(); |
139 | if (result instanceof ResizableEditPolicy) { |
140 | ResizableEditPolicy ep = (ResizableEditPolicy) result; |
141 | ep.setResizeDirections(PositionConstants.NONE); |
142 | } |
143 | return result; |
144 | } |
145 | |
146 | /** |
147 | * Creates figure for this edit part. |
148 | * |
149 | * Body of this method does not depend on settings in generation model |
150 | * so you may safely remove <i>generated</i> tag and modify it. |
151 | * |
152 | * @generated |
153 | */ |
154 | protected NodeFigure createNodeFigure() { |
155 | NodeFigure figure = createNodePlate(); |
156 | figure.setLayoutManager(new StackLayout()); |
157 | IFigure shape = createNodeShape(); |
158 | figure.add(shape); |
159 | contentPane = setupContentPane(shape); |
160 | return figure; |
161 | } |
162 | |
163 | /** |
164 | * Default implementation treats passed figure as content pane. |
165 | * Respects layout one may have set for generated figure. |
166 | * @param nodeShape instance of generated figure class |
167 | * @generated |
168 | */ |
169 | protected IFigure setupContentPane(IFigure nodeShape) { |
170 | return nodeShape; // use nodeShape itself as contentPane |
171 | } |
172 | |
173 | /** |
174 | * @generated |
175 | */ |
176 | public IFigure getContentPane() { |
177 | if (contentPane != null) { |
178 | return contentPane; |
179 | } |
180 | return super.getContentPane(); |
181 | } |
182 | |
183 | /** |
184 | * @generated |
185 | */ |
186 | protected void setForegroundColor(Color color) { |
187 | if (primaryShape != null) { |
188 | primaryShape.setForegroundColor(color); |
189 | } |
190 | } |
191 | |
192 | /** |
193 | * @generated |
194 | */ |
195 | protected void setBackgroundColor(Color color) { |
196 | if (primaryShape != null) { |
197 | primaryShape.setBackgroundColor(color); |
198 | } |
199 | } |
200 | |
201 | /** |
202 | * @generated |
203 | */ |
204 | protected void setLineWidth(int width) { |
205 | if (primaryShape instanceof Shape) { |
206 | ((Shape) primaryShape).setLineWidth(width); |
207 | } |
208 | } |
209 | |
210 | /** |
211 | * @generated |
212 | */ |
213 | protected void setLineType(int style) { |
214 | if (primaryShape instanceof Shape) { |
215 | ((Shape) primaryShape).setLineStyle(style); |
216 | } |
217 | } |
218 | |
219 | /** |
220 | * @generated |
221 | */ |
222 | public List/*<org.eclipse.gmf.runtime.emf.type.core.IElementType>*/getMARelTypesOnSource() { |
223 | List/*<org.eclipse.gmf.runtime.emf.type.core.IElementType>*/types = new ArrayList/*<org.eclipse.gmf.runtime.emf.type.core.IElementType>*/(); |
224 | types |
225 | .add(PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001); |
226 | return types; |
227 | } |
228 | |
229 | /** |
230 | * @generated |
231 | */ |
232 | public List/*<org.eclipse.gmf.runtime.emf.type.core.IElementType>*/getMARelTypesOnSourceAndTarget( |
233 | IGraphicalEditPart targetEditPart) { |
234 | List/*<org.eclipse.gmf.runtime.emf.type.core.IElementType>*/types = new ArrayList/*<org.eclipse.gmf.runtime.emf.type.core.IElementType>*/(); |
235 | if (targetEditPart instanceof StartActionEditPart) { |
236 | types |
237 | .add(PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001); |
238 | } |
239 | if (targetEditPart instanceof de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.StopActionEditPart) { |
240 | types |
241 | .add(PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001); |
242 | } |
243 | if (targetEditPart instanceof ExternalCallActionEditPart) { |
244 | types |
245 | .add(PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001); |
246 | } |
247 | if (targetEditPart instanceof EmitEventActionEditPart) { |
248 | types |
249 | .add(PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001); |
250 | } |
251 | if (targetEditPart instanceof LoopActionEditPart) { |
252 | types |
253 | .add(PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001); |
254 | } |
255 | if (targetEditPart instanceof BranchActionEditPart) { |
256 | types |
257 | .add(PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001); |
258 | } |
259 | if (targetEditPart instanceof InternalActionEditPart) { |
260 | types |
261 | .add(PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001); |
262 | } |
263 | if (targetEditPart instanceof CollectionIteratorActionEditPart) { |
264 | types |
265 | .add(PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001); |
266 | } |
267 | if (targetEditPart instanceof SetVariableActionEditPart) { |
268 | types |
269 | .add(PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001); |
270 | } |
271 | if (targetEditPart instanceof AcquireActionEditPart) { |
272 | types |
273 | .add(PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001); |
274 | } |
275 | if (targetEditPart instanceof ReleaseActionEditPart) { |
276 | types |
277 | .add(PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001); |
278 | } |
279 | if (targetEditPart instanceof ForkActionEditPart) { |
280 | types |
281 | .add(PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001); |
282 | } |
283 | if (targetEditPart instanceof RecoveryActionEditPart) { |
284 | types |
285 | .add(PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001); |
286 | } |
287 | if (targetEditPart instanceof StartAction2EditPart) { |
288 | types |
289 | .add(PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001); |
290 | } |
291 | if (targetEditPart instanceof StopAction2EditPart) { |
292 | types |
293 | .add(PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001); |
294 | } |
295 | if (targetEditPart instanceof LoopAction2EditPart) { |
296 | types |
297 | .add(PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001); |
298 | } |
299 | if (targetEditPart instanceof InternalAction2EditPart) { |
300 | types |
301 | .add(PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001); |
302 | } |
303 | if (targetEditPart instanceof BranchAction2EditPart) { |
304 | types |
305 | .add(PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001); |
306 | } |
307 | if (targetEditPart instanceof ExternalCallAction2EditPart) { |
308 | types |
309 | .add(PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001); |
310 | } |
311 | if (targetEditPart instanceof EmitEventAction2EditPart) { |
312 | types |
313 | .add(PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001); |
314 | } |
315 | if (targetEditPart instanceof AcquireAction2EditPart) { |
316 | types |
317 | .add(PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001); |
318 | } |
319 | if (targetEditPart instanceof ReleaseAction2EditPart) { |
320 | types |
321 | .add(PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001); |
322 | } |
323 | if (targetEditPart instanceof ForkAction2EditPart) { |
324 | types |
325 | .add(PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001); |
326 | } |
327 | if (targetEditPart instanceof CollectionIteratorAction2EditPart) { |
328 | types |
329 | .add(PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001); |
330 | } |
331 | if (targetEditPart instanceof RecoveryAction2EditPart) { |
332 | types |
333 | .add(PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001); |
334 | } |
335 | if (targetEditPart instanceof SetVariableAction2EditPart) { |
336 | types |
337 | .add(PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001); |
338 | } |
339 | return types; |
340 | } |
341 | |
342 | /** |
343 | * @generated |
344 | */ |
345 | public List/*<org.eclipse.gmf.runtime.emf.type.core.IElementType>*/getMATypesForTarget( |
346 | IElementType relationshipType) { |
347 | List/*<org.eclipse.gmf.runtime.emf.type.core.IElementType>*/types = new ArrayList/*<org.eclipse.gmf.runtime.emf.type.core.IElementType>*/(); |
348 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
349 | types.add(PalladioComponentModelElementTypes.StartAction_2001); |
350 | } |
351 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
352 | types.add(PalladioComponentModelElementTypes.StopAction_2002); |
353 | } |
354 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
355 | types |
356 | .add(PalladioComponentModelElementTypes.ExternalCallAction_2003); |
357 | } |
358 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
359 | types.add(PalladioComponentModelElementTypes.EmitEventAction_2013); |
360 | } |
361 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
362 | types.add(PalladioComponentModelElementTypes.LoopAction_2004); |
363 | } |
364 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
365 | types.add(PalladioComponentModelElementTypes.BranchAction_2005); |
366 | } |
367 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
368 | types.add(PalladioComponentModelElementTypes.InternalAction_2006); |
369 | } |
370 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
371 | types |
372 | .add(PalladioComponentModelElementTypes.CollectionIteratorAction_2007); |
373 | } |
374 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
375 | types |
376 | .add(PalladioComponentModelElementTypes.SetVariableAction_2008); |
377 | } |
378 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
379 | types.add(PalladioComponentModelElementTypes.AcquireAction_2012); |
380 | } |
381 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
382 | types.add(PalladioComponentModelElementTypes.ReleaseAction_2010); |
383 | } |
384 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
385 | types.add(PalladioComponentModelElementTypes.ForkAction_2011); |
386 | } |
387 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
388 | types.add(PalladioComponentModelElementTypes.RecoveryAction_2016); |
389 | } |
390 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
391 | types.add(PalladioComponentModelElementTypes.StartAction_3004); |
392 | } |
393 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
394 | types.add(PalladioComponentModelElementTypes.StopAction_3005); |
395 | } |
396 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
397 | types.add(PalladioComponentModelElementTypes.LoopAction_3006); |
398 | } |
399 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
400 | types.add(PalladioComponentModelElementTypes.InternalAction_3007); |
401 | } |
402 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
403 | types.add(PalladioComponentModelElementTypes.BranchAction_3009); |
404 | } |
405 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
406 | types |
407 | .add(PalladioComponentModelElementTypes.ExternalCallAction_3012); |
408 | } |
409 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
410 | types.add(PalladioComponentModelElementTypes.EmitEventAction_3046); |
411 | } |
412 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
413 | types.add(PalladioComponentModelElementTypes.AcquireAction_3026); |
414 | } |
415 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
416 | types.add(PalladioComponentModelElementTypes.ReleaseAction_3020); |
417 | } |
418 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
419 | types.add(PalladioComponentModelElementTypes.ForkAction_3023); |
420 | } |
421 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
422 | types |
423 | .add(PalladioComponentModelElementTypes.CollectionIteratorAction_3013); |
424 | } |
425 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
426 | types.add(PalladioComponentModelElementTypes.RecoveryAction_3057); |
427 | } |
428 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
429 | types |
430 | .add(PalladioComponentModelElementTypes.SetVariableAction_3024); |
431 | } |
432 | return types; |
433 | } |
434 | |
435 | /** |
436 | * @generated |
437 | */ |
438 | public List/*<org.eclipse.gmf.runtime.emf.type.core.IElementType>*/getMARelTypesOnTarget() { |
439 | List/*<org.eclipse.gmf.runtime.emf.type.core.IElementType>*/types = new ArrayList/*<org.eclipse.gmf.runtime.emf.type.core.IElementType>*/(); |
440 | types |
441 | .add(PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001); |
442 | return types; |
443 | } |
444 | |
445 | /** |
446 | * @generated |
447 | */ |
448 | public List/*<org.eclipse.gmf.runtime.emf.type.core.IElementType>*/getMATypesForSource( |
449 | IElementType relationshipType) { |
450 | List/*<org.eclipse.gmf.runtime.emf.type.core.IElementType>*/types = new ArrayList/*<org.eclipse.gmf.runtime.emf.type.core.IElementType>*/(); |
451 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
452 | types.add(PalladioComponentModelElementTypes.StartAction_2001); |
453 | } |
454 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
455 | types.add(PalladioComponentModelElementTypes.StopAction_2002); |
456 | } |
457 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
458 | types |
459 | .add(PalladioComponentModelElementTypes.ExternalCallAction_2003); |
460 | } |
461 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
462 | types.add(PalladioComponentModelElementTypes.EmitEventAction_2013); |
463 | } |
464 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
465 | types.add(PalladioComponentModelElementTypes.LoopAction_2004); |
466 | } |
467 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
468 | types.add(PalladioComponentModelElementTypes.BranchAction_2005); |
469 | } |
470 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
471 | types.add(PalladioComponentModelElementTypes.InternalAction_2006); |
472 | } |
473 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
474 | types |
475 | .add(PalladioComponentModelElementTypes.CollectionIteratorAction_2007); |
476 | } |
477 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
478 | types |
479 | .add(PalladioComponentModelElementTypes.SetVariableAction_2008); |
480 | } |
481 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
482 | types.add(PalladioComponentModelElementTypes.AcquireAction_2012); |
483 | } |
484 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
485 | types.add(PalladioComponentModelElementTypes.ReleaseAction_2010); |
486 | } |
487 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
488 | types.add(PalladioComponentModelElementTypes.ForkAction_2011); |
489 | } |
490 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
491 | types.add(PalladioComponentModelElementTypes.RecoveryAction_2016); |
492 | } |
493 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
494 | types.add(PalladioComponentModelElementTypes.StartAction_3004); |
495 | } |
496 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
497 | types.add(PalladioComponentModelElementTypes.StopAction_3005); |
498 | } |
499 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
500 | types.add(PalladioComponentModelElementTypes.LoopAction_3006); |
501 | } |
502 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
503 | types.add(PalladioComponentModelElementTypes.InternalAction_3007); |
504 | } |
505 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
506 | types.add(PalladioComponentModelElementTypes.BranchAction_3009); |
507 | } |
508 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
509 | types |
510 | .add(PalladioComponentModelElementTypes.ExternalCallAction_3012); |
511 | } |
512 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
513 | types.add(PalladioComponentModelElementTypes.EmitEventAction_3046); |
514 | } |
515 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
516 | types.add(PalladioComponentModelElementTypes.AcquireAction_3026); |
517 | } |
518 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
519 | types.add(PalladioComponentModelElementTypes.ReleaseAction_3020); |
520 | } |
521 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
522 | types.add(PalladioComponentModelElementTypes.ForkAction_3023); |
523 | } |
524 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
525 | types |
526 | .add(PalladioComponentModelElementTypes.CollectionIteratorAction_3013); |
527 | } |
528 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
529 | types.add(PalladioComponentModelElementTypes.RecoveryAction_3057); |
530 | } |
531 | if (relationshipType == PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001) { |
532 | types |
533 | .add(PalladioComponentModelElementTypes.SetVariableAction_3024); |
534 | } |
535 | return types; |
536 | } |
537 | |
538 | /** |
539 | * @generated |
540 | */ |
541 | public class StopFigure extends Ellipse { |
542 | /** |
543 | * @generated |
544 | */ |
545 | public StopFigure() { |
546 | this.setLayoutManager(new StackLayout()); |
547 | this.setLineWidth(1); |
548 | this.setPreferredSize(new Dimension(getMapMode().DPtoLP(30), |
549 | getMapMode().DPtoLP(30))); |
550 | this.setMinimumSize(new Dimension(getMapMode().DPtoLP(0), |
551 | getMapMode().DPtoLP(0))); |
552 | |
553 | this.setBorder(new MarginBorder(getMapMode().DPtoLP(3), |
554 | getMapMode().DPtoLP(3), getMapMode().DPtoLP(3), |
555 | getMapMode().DPtoLP(3))); |
556 | createContents(); |
557 | } |
558 | |
559 | /** |
560 | * @generated |
561 | */ |
562 | private void createContents() { |
563 | |
564 | Ellipse innerCircle0 = new Ellipse(); |
565 | innerCircle0.setLineWidth(1); |
566 | innerCircle0.setBackgroundColor(ColorConstants.black); |
567 | |
568 | this.add(innerCircle0); |
569 | |
570 | } |
571 | |
572 | /** |
573 | * @generated |
574 | */ |
575 | private boolean myUseLocalCoordinates = false; |
576 | |
577 | /** |
578 | * @generated |
579 | */ |
580 | protected boolean useLocalCoordinates() { |
581 | return myUseLocalCoordinates; |
582 | } |
583 | |
584 | /** |
585 | * @generated |
586 | */ |
587 | protected void setUseLocalCoordinates(boolean useLocalCoordinates) { |
588 | myUseLocalCoordinates = useLocalCoordinates; |
589 | } |
590 | |
591 | } |
592 | |
593 | } |