1 | /* |
2 | * Copyright 2007, SDQ, IPD, U KA |
3 | */ |
4 | package de.uka.ipd.sdq.pcm.gmf.allocation.edit.policies; |
5 | |
6 | import java.util.ArrayList; |
7 | import java.util.Collection; |
8 | import java.util.Collections; |
9 | import java.util.Iterator; |
10 | |
11 | import org.eclipse.gef.EditPart; |
12 | import org.eclipse.gef.commands.Command; |
13 | import org.eclipse.gef.commands.CompoundCommand; |
14 | import org.eclipse.gmf.runtime.diagram.ui.requests.EditCommandRequestWrapper; |
15 | import org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand; |
16 | import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest; |
17 | import org.eclipse.gmf.runtime.notation.Edge; |
18 | import org.eclipse.gmf.runtime.notation.View; |
19 | |
20 | import de.uka.ipd.sdq.pcm.gmf.allocation.edit.parts.AllocationContextEditPart; |
21 | |
22 | /** |
23 | * @generated |
24 | */ |
25 | public class AllocationContextItemSemanticEditPolicy extends |
26 | PalladioComponentModelBaseItemSemanticEditPolicy { |
27 | |
28 | /** |
29 | * @generated |
30 | */ |
31 | protected Command getDestroyElementCommand(DestroyElementRequest req) { |
32 | CompoundCommand cc = getDestroyEdgesCommand(); |
33 | addDestroyShortcutsCommand(cc); |
34 | cc.add(getGEFWrapper(new DestroyElementCommand(req))); |
35 | return cc.unwrap(); |
36 | } |
37 | |
38 | } |