blob: db4723b61bcbe87056d890de0e44b58bf90b7078 (
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
56
57
58
59
|
/*****************************************************************************
* Copyright (c) 2015 CEA LIST.
*
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors: Onder Gurcan <onder.gurcan@cea.fr>
*
*****************************************************************************/
package org.eclipse.papyrus.umlrt.custom;
import java.util.Arrays;
import java.util.List;
import org.eclipse.gmf.runtime.emf.type.core.AbstractElementTypeEnumerator;
import org.eclipse.gmf.runtime.emf.type.core.IHintedType;
/**
* Static list of UML-RT specific element types
*/
public class UMLRTElementTypesEnumerator extends AbstractElementTypeEnumerator implements IUMLRTElementTypes {
public static final IHintedType RT_MESSAGE_SET = (IHintedType) getElementType(RT_MESSAGE_SET_ID);
public static final IHintedType PROTOCOL_CONTAINER = (IHintedType) getElementType(PROTOCOL_CONTAINER_ID);
public static final IHintedType PROTOCOL = (IHintedType) getElementType(PROTOCOL_ID);
public static final IHintedType CAPSULE = (IHintedType) getElementType(CAPSULE_ID);
public static final IHintedType CAPSULE_PART = (IHintedType) getElementType(CAPSULE_PART_ID);
public static final IHintedType RT_PORT = (IHintedType) getElementType(RT_PORT_ID);
public static final IHintedType RT_CONNECTOR = (IHintedType) getElementType(RT_CONNECTOR_ID);
public static final IHintedType RT_EXCLUDED_ELEMENT = (IHintedType) getElementType(RT_EXCLUDED_ELEMENT_ID);
public static final IHintedType RT_MESSAGE = (IHintedType) getElementType(RT_MESSAGE_ID);
public static final IHintedType RT_MESSAGE_IN = (IHintedType) getElementType(RT_MESSAGE_IN_ID);
// public static final IHintedType RT_MESSAGE_OUT = (IHintedType) getElementType(RT_MESSAGE_OUT_ID);
// public static final IHintedType RT_MESSAGE_INOUT = (IHintedType) getElementType(RT_MESSAGE_INOUT_ID);
private static final List<IHintedType> rtTypes = Arrays.asList(RT_MESSAGE_SET, PROTOCOL_CONTAINER, PROTOCOL, CAPSULE, CAPSULE_PART, RT_PORT, RT_CONNECTOR, RT_EXCLUDED_ELEMENT, RT_MESSAGE, RT_MESSAGE_IN);
/**
* Returns all the specific semantic element types for UML-RT
*
* @return all the specific semantic element types for UML-RT
*/
public static List<IHintedType> getAllRTTypes() {
return rtTypes;
}
}
|