blob: 3ce3284ba19744a16092458fe0dae361d24ad751 (
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.AtomicUnit5CreateCommand;
import comrel.diagram.edit.commands.CartesianQueuedUnit5CreateCommand;
import comrel.diagram.edit.commands.ConditionalUnit5CreateCommand;
import comrel.diagram.edit.commands.ParallelQueuedUnit6CreateCommand;
import comrel.diagram.edit.commands.SequentialUnit6CreateCommand;
import comrel.diagram.edit.commands.SingleQueuedUnit6CreateCommand;
import comrel.diagram.providers.ComrelElementTypes;
/**
* @generated
*/
public class SequentialUnitSequentialUnitRefactoringUnitsCompartmentItemSemanticEditPolicy
extends ComrelBaseItemSemanticEditPolicy {
/**
* @generated
*/
public SequentialUnitSequentialUnitRefactoringUnitsCompartmentItemSemanticEditPolicy() {
super(ComrelElementTypes.SequentialUnit_3026);
}
/**
* @generated
*/
protected Command getCreateCommand(CreateElementRequest req) {
if (ComrelElementTypes.CartesianQueuedUnit_3029 == req.getElementType()) {
return getGEFWrapper(new CartesianQueuedUnit5CreateCommand(req));
}
if (ComrelElementTypes.ParallelQueuedUnit_3045 == req.getElementType()) {
return getGEFWrapper(new ParallelQueuedUnit6CreateCommand(req));
}
if (ComrelElementTypes.SingleQueuedUnit_3065 == req.getElementType()) {
return getGEFWrapper(new SingleQueuedUnit6CreateCommand(req));
}
if (ComrelElementTypes.SequentialUnit_3070 == req.getElementType()) {
return getGEFWrapper(new SequentialUnit6CreateCommand(req));
}
if (ComrelElementTypes.ConditionalUnit_3071 == req.getElementType()) {
return getGEFWrapper(new ConditionalUnit5CreateCommand(req));
}
if (ComrelElementTypes.AtomicUnit_3074 == req.getElementType()) {
return getGEFWrapper(new AtomicUnit5CreateCommand(req));
}
return super.getCreateCommand(req);
}
}
|