Skip to main content
summaryrefslogtreecommitdiffstats
blob: ba973c8b3ca17daab819dd87523c0170fb55498f (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.AtomicUnit6CreateCommand;
import comrel.diagram.edit.commands.CartesianQueuedUnit6CreateCommand;
import comrel.diagram.edit.commands.ConditionalUnit6CreateCommand;
import comrel.diagram.edit.commands.ParallelQueuedUnit3CreateCommand;
import comrel.diagram.edit.commands.SequentialUnit5CreateCommand;
import comrel.diagram.edit.commands.SingleQueuedUnit4CreateCommand;
import comrel.diagram.providers.ComrelElementTypes;

/**
 * @generated
 */
public class ConditionalUnitConditionalUnitThenCompartment6ItemSemanticEditPolicy
		extends ComrelBaseItemSemanticEditPolicy {

	/**
	 * @generated
	 */
	public ConditionalUnitConditionalUnitThenCompartment6ItemSemanticEditPolicy() {
		super(ComrelElementTypes.ConditionalUnit_3075);
	}

	/**
	 * @generated
	 */
	protected Command getCreateCommand(CreateElementRequest req) {
		if (ComrelElementTypes.CartesianQueuedUnit_3033 == req.getElementType()) {
			return getGEFWrapper(new CartesianQueuedUnit6CreateCommand(req));
		}
		if (ComrelElementTypes.ParallelQueuedUnit_3036 == req.getElementType()) {
			return getGEFWrapper(new ParallelQueuedUnit3CreateCommand(req));
		}
		if (ComrelElementTypes.SingleQueuedUnit_3054 == req.getElementType()) {
			return getGEFWrapper(new SingleQueuedUnit4CreateCommand(req));
		}
		if (ComrelElementTypes.SequentialUnit_3069 == req.getElementType()) {
			return getGEFWrapper(new SequentialUnit5CreateCommand(req));
		}
		if (ComrelElementTypes.ConditionalUnit_3072 == req.getElementType()) {
			return getGEFWrapper(new ConditionalUnit6CreateCommand(req));
		}
		if (ComrelElementTypes.AtomicUnit_3077 == req.getElementType()) {
			return getGEFWrapper(new AtomicUnit6CreateCommand(req));
		}
		return super.getCreateCommand(req);
	}

}

Back to the top