Skip to main content
summaryrefslogtreecommitdiffstats
blob: c1a54801f2772bda26ee281d66301afad6e6e961 (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
/*
 * 
 */
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.MultiFeatureUnitCreateCommand;
import comrel.diagram.edit.commands.MultiFilterUnitCreateCommand;
import comrel.diagram.edit.commands.SingleFeatureUnitCreateCommand;
import comrel.diagram.edit.commands.SingleFilterUnitCreateCommand;
import comrel.diagram.providers.ComrelElementTypes;

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

	/**
	 * @generated
	 */
	public CartesianQueuedUnitCartesianQueuedUnitHelperUnitsCompartment4ItemSemanticEditPolicy() {
		super(ComrelElementTypes.CartesianQueuedUnit_3025);
	}

	/**
	 * @generated
	 */
	protected Command getCreateCommand(CreateElementRequest req) {
		if (ComrelElementTypes.SingleFeatureUnit_3008 == req.getElementType()) {
			return getGEFWrapper(new SingleFeatureUnitCreateCommand(req));
		}
		if (ComrelElementTypes.MultiFeatureUnit_3012 == req.getElementType()) {
			return getGEFWrapper(new MultiFeatureUnitCreateCommand(req));
		}
		if (ComrelElementTypes.SingleFilterUnit_3016 == req.getElementType()) {
			return getGEFWrapper(new SingleFilterUnitCreateCommand(req));
		}
		if (ComrelElementTypes.MultiFilterUnit_3019 == req.getElementType()) {
			return getGEFWrapper(new MultiFilterUnitCreateCommand(req));
		}
		return super.getCreateCommand(req);
	}

}

Back to the top