blob: 78982a3061a6549831bd3fee15c54dad9cfcac88 (
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
|
/*
*
*/
package comrel.diagram.edit.policies;
import org.eclipse.gef.commands.Command;
import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
import comrel.diagram.edit.commands.AtomicUnit4CreateCommand;
import comrel.diagram.edit.commands.CartesianQueuedUnit4CreateCommand;
import comrel.diagram.edit.commands.ConditionalUnit4CreateCommand;
import comrel.diagram.edit.commands.ParallelQueuedUnit5CreateCommand;
import comrel.diagram.edit.commands.SequentialUnit4CreateCommand;
import comrel.diagram.edit.commands.SingleQueuedUnit5CreateCommand;
import comrel.diagram.providers.ComrelElementTypes;
/**
* @generated
*/
public class SingleQueuedUnitSingleQueuedUnitRefactoringUnitCompartment3ItemSemanticEditPolicy
extends ComrelBaseItemSemanticEditPolicy {
/**
* @generated
*/
public SingleQueuedUnitSingleQueuedUnitRefactoringUnitCompartment3ItemSemanticEditPolicy() {
super(ComrelElementTypes.SingleQueuedUnit_3054);
}
/**
* @generated
*/
protected Command getCreateCommand(CreateElementRequest req) {
if (ComrelElementTypes.CartesianQueuedUnit_3025 == req.getElementType()) {
return getGEFWrapper(new CartesianQueuedUnit4CreateCommand(req));
}
if (ComrelElementTypes.ParallelQueuedUnit_3043 == req.getElementType()) {
return getGEFWrapper(new ParallelQueuedUnit5CreateCommand(req));
}
if (ComrelElementTypes.SingleQueuedUnit_3059 == req.getElementType()) {
return getGEFWrapper(new SingleQueuedUnit5CreateCommand(req));
}
if (ComrelElementTypes.SequentialUnit_3060 == req.getElementType()) {
return getGEFWrapper(new SequentialUnit4CreateCommand(req));
}
if (ComrelElementTypes.ConditionalUnit_3066 == req.getElementType()) {
return getGEFWrapper(new ConditionalUnit4CreateCommand(req));
}
if (ComrelElementTypes.AtomicUnit_3068 == req.getElementType()) {
return getGEFWrapper(new AtomicUnit4CreateCommand(req));
}
return super.getCreateCommand(req);
}
}
|