Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLElementTypes.java')
-rwxr-xr-x[-rw-r--r--]plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLElementTypes.java310
1 files changed, 138 insertions, 172 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLElementTypes.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLElementTypes.java
index 41125c359eb..1c400b13193 100644..100755
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLElementTypes.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src-gen/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLElementTypes.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2014 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:
- * CEA LIST - Initial API and implementation
+ *
+ * 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:
+ * CEA LIST - Initial API and implementation
*/
package org.eclipse.papyrus.uml.diagram.deployment.providers;
@@ -20,9 +20,9 @@ import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.emf.ecore.ENamedElement;
import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.tooling.runtime.providers.DiagramElementTypeImages;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.papyrus.infra.gmfdiag.common.providers.DiagramElementTypes;
+import org.eclipse.papyrus.infra.gmfdiag.tooling.runtime.providers.DiagramElementTypeImages;
import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPart;
import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPartACN;
import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPartCN;
@@ -83,7 +83,8 @@ public class UMLElementTypes {
/**
* @generated
*/
- private static DiagramElementTypeImages elementTypeImages = new DiagramElementTypeImages(UMLDiagramEditorPlugin.getInstance().getItemProvidersAdapterFactory());
+ private static DiagramElementTypeImages elementTypeImages = new DiagramElementTypeImages(
+ UMLDiagramEditorPlugin.getInstance().getItemProvidersAdapterFactory());
/**
* @generated
@@ -93,187 +94,185 @@ public class UMLElementTypes {
/**
* @generated
*/
- public static final IElementType Package_DeploymentDiagram = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Package_DeploymentDiagram"); //$NON-NLS-1$
-
+ public static final IElementType Package_DeploymentDiagram = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.Package_DeploymentDiagram"); //$NON-NLS-1$
/**
* @generated
*/
- public static final IElementType Dependency_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Dependency_Shape"); //$NON-NLS-1$
-
+ public static final IElementType Dependency_Shape = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.Dependency_Shape"); //$NON-NLS-1$
/**
* @generated
*/
public static final IElementType Model_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Model_Shape"); //$NON-NLS-1$
-
/**
* @generated
*/
- public static final IElementType Package_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Package_Shape"); //$NON-NLS-1$
-
+ public static final IElementType Package_Shape = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.Package_Shape"); //$NON-NLS-1$
/**
* @generated
*/
- public static final IElementType Constraint_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Constraint_Shape"); //$NON-NLS-1$
-
+ public static final IElementType Constraint_Shape = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.Constraint_Shape"); //$NON-NLS-1$
/**
* @generated
*/
- public static final IElementType Comment_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Comment_Shape"); //$NON-NLS-1$
-
+ public static final IElementType Comment_Shape = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.Comment_Shape"); //$NON-NLS-1$
/**
* @generated
*/
- public static final IElementType ExecutionEnvironment_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.ExecutionEnvironment_Shape"); //$NON-NLS-1$
-
+ public static final IElementType ExecutionEnvironment_Shape = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.ExecutionEnvironment_Shape"); //$NON-NLS-1$
/**
* @generated
*/
public static final IElementType Device_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Device_Shape"); //$NON-NLS-1$
-
/**
* @generated
*/
- public static final IElementType Artifact_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Artifact_Shape"); //$NON-NLS-1$
-
+ public static final IElementType Artifact_Shape = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.Artifact_Shape"); //$NON-NLS-1$
/**
* @generated
*/
public static final IElementType Node_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Node_Shape"); //$NON-NLS-1$
-
/**
* @generated
*/
- public static final IElementType NamedElement_DefaultShape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.NamedElement_DefaultShape"); //$NON-NLS-1$
-
+ public static final IElementType NamedElement_DefaultShape = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.NamedElement_DefaultShape"); //$NON-NLS-1$
/**
* @generated
*/
- public static final IElementType DeploymentSpecification_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.DeploymentSpecification_Shape"); //$NON-NLS-1$
-
+ public static final IElementType DeploymentSpecification_Shape = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.DeploymentSpecification_Shape"); //$NON-NLS-1$
/**
* @generated
*/
- public static final IElementType Model_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Model_Shape_CN"); //$NON-NLS-1$
-
+ public static final IElementType Model_Shape_CN = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.Model_Shape_CN"); //$NON-NLS-1$
/**
* @generated
*/
- public static final IElementType Package_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Package_Shape_CN"); //$NON-NLS-1$
-
+ public static final IElementType Package_Shape_CN = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.Package_Shape_CN"); //$NON-NLS-1$
/**
* @generated
*/
- public static final IElementType Device_Shape_CCN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Device_Shape_CCN"); //$NON-NLS-1$
-
+ public static final IElementType Device_Shape_CCN = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.Device_Shape_CCN"); //$NON-NLS-1$
/**
* @generated
*/
- public static final IElementType Device_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Device_Shape_CN"); //$NON-NLS-1$
-
+ public static final IElementType Device_Shape_CN = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.Device_Shape_CN"); //$NON-NLS-1$
/**
* @generated
*/
- public static final IElementType ExecutionEnvironment_Shape_CCN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.ExecutionEnvironment_Shape_CCN"); //$NON-NLS-1$
-
+ public static final IElementType ExecutionEnvironment_Shape_CCN = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.ExecutionEnvironment_Shape_CCN"); //$NON-NLS-1$
/**
* @generated
*/
- public static final IElementType ExecutionEnvironment_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.ExecutionEnvironment_Shape_CN"); //$NON-NLS-1$
-
+ public static final IElementType ExecutionEnvironment_Shape_CN = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.ExecutionEnvironment_Shape_CN"); //$NON-NLS-1$
/**
* @generated
*/
- public static final IElementType Node_Shape_CCN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Node_Shape_CCN"); //$NON-NLS-1$
-
+ public static final IElementType Node_Shape_CCN = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.Node_Shape_CCN"); //$NON-NLS-1$
/**
* @generated
*/
- public static final IElementType Node_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Node_Shape_CN"); //$NON-NLS-1$
-
+ public static final IElementType Node_Shape_CN = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.Node_Shape_CN"); //$NON-NLS-1$
/**
* @generated
*/
- public static final IElementType Artifact_Shape_CCN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Artifact_Shape_CCN"); //$NON-NLS-1$
-
+ public static final IElementType Artifact_Shape_CCN = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.Artifact_Shape_CCN"); //$NON-NLS-1$
/**
* @generated
*/
- public static final IElementType Artifact_Shape_ACN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Artifact_Shape_ACN"); //$NON-NLS-1$
-
+ public static final IElementType Artifact_Shape_ACN = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.Artifact_Shape_ACN"); //$NON-NLS-1$
/**
* @generated
*/
- public static final IElementType Artifact_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Artifact_Shape_CN"); //$NON-NLS-1$
-
+ public static final IElementType Artifact_Shape_CN = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.Artifact_Shape_CN"); //$NON-NLS-1$
/**
* @generated
*/
- public static final IElementType Comment_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Comment_Shape_CN"); //$NON-NLS-1$
-
+ public static final IElementType Comment_Shape_CN = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.Comment_Shape_CN"); //$NON-NLS-1$
/**
* @generated
*/
- public static final IElementType Constraint_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Constraint_Shape_CN"); //$NON-NLS-1$
-
+ public static final IElementType Constraint_Shape_CN = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.Constraint_Shape_CN"); //$NON-NLS-1$
/**
* @generated
*/
- public static final IElementType DeploymentSpecification_Shape_CCN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.DeploymentSpecification_Shape_CCN"); //$NON-NLS-1$
-
+ public static final IElementType DeploymentSpecification_Shape_CCN = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.DeploymentSpecification_Shape_CCN"); //$NON-NLS-1$
/**
* @generated
*/
- public static final IElementType DeploymentSpecification_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.DeploymentSpecification_Shape_CN"); //$NON-NLS-1$
-
+ public static final IElementType DeploymentSpecification_Shape_CN = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.DeploymentSpecification_Shape_CN"); //$NON-NLS-1$
/**
* @generated
*/
- public static final IElementType DeploymentSpecification_Shape_ACN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.DeploymentSpecification_Shape_ACN"); //$NON-NLS-1$
-
+ public static final IElementType DeploymentSpecification_Shape_ACN = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.DeploymentSpecification_Shape_ACN"); //$NON-NLS-1$
/**
* @generated
*/
- public static final IElementType Link_DescriptorEdge = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Link_DescriptorEdge"); //$NON-NLS-1$
-
+ public static final IElementType Link_DescriptorEdge = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.Link_DescriptorEdge"); //$NON-NLS-1$
/**
* @generated
*/
- public static final IElementType Comment_AnnotatedElementEdge = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Comment_AnnotatedElementEdge"); //$NON-NLS-1$
-
+ public static final IElementType Comment_AnnotatedElementEdge = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.Comment_AnnotatedElementEdge"); //$NON-NLS-1$
/**
* @generated
*/
- public static final IElementType Constraint_ConstrainedElementEdge = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Constraint_ConstrainedElementEdge"); //$NON-NLS-1$
-
+ public static final IElementType Constraint_ConstrainedElementEdge = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.Constraint_ConstrainedElementEdge"); //$NON-NLS-1$
/**
* @generated
*/
- public static final IElementType Deployment_Edge = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Deployment_Edge"); //$NON-NLS-1$
-
+ public static final IElementType Deployment_Edge = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.Deployment_Edge"); //$NON-NLS-1$
/**
* @generated
*/
- public static final IElementType Manifestation_Edge = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Manifestation_Edge"); //$NON-NLS-1$
-
+ public static final IElementType Manifestation_Edge = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.Manifestation_Edge"); //$NON-NLS-1$
/**
* @generated
*/
- public static final IElementType Generalization_Edge = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Generalization_Edge"); //$NON-NLS-1$
-
+ public static final IElementType Generalization_Edge = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.Generalization_Edge"); //$NON-NLS-1$
/**
* @generated
*/
- public static final IElementType Dependency_Edge = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Dependency_Edge"); //$NON-NLS-1$
-
+ public static final IElementType Dependency_Edge = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.Dependency_Edge"); //$NON-NLS-1$
/**
* @generated
*/
- public static final IElementType Dependency_BranchEdge = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Dependency_BranchEdge"); //$NON-NLS-1$
-
+ public static final IElementType Dependency_BranchEdge = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.Dependency_BranchEdge"); //$NON-NLS-1$
/**
* @generated
*/
- public static final IElementType CommunicationPath_Edge = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.CommunicationPath_Edge"); //$NON-NLS-1$
+ public static final IElementType CommunicationPath_Edge = getElementTypeByUniqueId(
+ "org.eclipse.papyrus.umldi.CommunicationPath_Edge"); //$NON-NLS-1$
/**
* @generated
@@ -305,117 +304,84 @@ public class UMLElementTypes {
/**
* Returns 'type' of the ecore object associated with the hint.
- *
+ *
* @generated
*/
public static synchronized ENamedElement getElement(IAdaptable hint) {
Object type = hint.getAdapter(IElementType.class);
if (elements == null) {
- elements = new IdentityHashMap<>();
+ elements = new IdentityHashMap<IElementType, ENamedElement>();
elements.put(Package_DeploymentDiagram, UMLPackage.eINSTANCE.getPackage());
-
elements.put(Dependency_Shape, UMLPackage.eINSTANCE.getDependency());
-
elements.put(Model_Shape, UMLPackage.eINSTANCE.getModel());
-
elements.put(Package_Shape, UMLPackage.eINSTANCE.getPackage());
-
elements.put(Constraint_Shape, UMLPackage.eINSTANCE.getConstraint());
-
elements.put(Comment_Shape, UMLPackage.eINSTANCE.getComment());
-
elements.put(ExecutionEnvironment_Shape, UMLPackage.eINSTANCE.getExecutionEnvironment());
-
elements.put(Device_Shape, UMLPackage.eINSTANCE.getDevice());
-
elements.put(Artifact_Shape, UMLPackage.eINSTANCE.getArtifact());
-
elements.put(Node_Shape, UMLPackage.eINSTANCE.getNode());
-
elements.put(NamedElement_DefaultShape, UMLPackage.eINSTANCE.getNamedElement());
-
elements.put(DeploymentSpecification_Shape, UMLPackage.eINSTANCE.getDeploymentSpecification());
-
elements.put(Model_Shape_CN, UMLPackage.eINSTANCE.getModel());
-
elements.put(Package_Shape_CN, UMLPackage.eINSTANCE.getPackage());
-
elements.put(Device_Shape_CCN, UMLPackage.eINSTANCE.getDevice());
-
elements.put(Device_Shape_CN, UMLPackage.eINSTANCE.getDevice());
-
elements.put(ExecutionEnvironment_Shape_CCN, UMLPackage.eINSTANCE.getExecutionEnvironment());
-
elements.put(ExecutionEnvironment_Shape_CN, UMLPackage.eINSTANCE.getExecutionEnvironment());
-
elements.put(Node_Shape_CCN, UMLPackage.eINSTANCE.getNode());
-
elements.put(Node_Shape_CN, UMLPackage.eINSTANCE.getNode());
-
elements.put(Artifact_Shape_CCN, UMLPackage.eINSTANCE.getArtifact());
-
elements.put(Artifact_Shape_ACN, UMLPackage.eINSTANCE.getArtifact());
-
elements.put(Artifact_Shape_CN, UMLPackage.eINSTANCE.getArtifact());
-
elements.put(Comment_Shape_CN, UMLPackage.eINSTANCE.getComment());
-
elements.put(Constraint_Shape_CN, UMLPackage.eINSTANCE.getConstraint());
-
elements.put(DeploymentSpecification_Shape_CCN, UMLPackage.eINSTANCE.getDeploymentSpecification());
-
elements.put(DeploymentSpecification_Shape_CN, UMLPackage.eINSTANCE.getDeploymentSpecification());
-
elements.put(DeploymentSpecification_Shape_ACN, UMLPackage.eINSTANCE.getDeploymentSpecification());
elements.put(Comment_AnnotatedElementEdge, UMLPackage.eINSTANCE.getComment_AnnotatedElement());
elements.put(Constraint_ConstrainedElementEdge, UMLPackage.eINSTANCE.getConstraint_ConstrainedElement());
-
elements.put(Deployment_Edge, UMLPackage.eINSTANCE.getDeployment());
-
elements.put(Manifestation_Edge, UMLPackage.eINSTANCE.getManifestation());
-
elements.put(Generalization_Edge, UMLPackage.eINSTANCE.getGeneralization());
-
elements.put(Dependency_Edge, UMLPackage.eINSTANCE.getDependency());
-
elements.put(Dependency_BranchEdge, UMLPackage.eINSTANCE.getDependency());
-
elements.put(CommunicationPath_Edge, UMLPackage.eINSTANCE.getCommunicationPath());
}
return elements.get(type);
@@ -431,6 +397,63 @@ public class UMLElementTypes {
/**
* @generated
*/
+ public static synchronized boolean isKnownElementType(IElementType elementType) {
+ if (KNOWN_ELEMENT_TYPES == null) {
+ KNOWN_ELEMENT_TYPES = new HashSet<IElementType>();
+ KNOWN_ELEMENT_TYPES.add(Package_DeploymentDiagram);
+ KNOWN_ELEMENT_TYPES.add(Dependency_Shape);
+ KNOWN_ELEMENT_TYPES.add(Model_Shape);
+ KNOWN_ELEMENT_TYPES.add(Package_Shape);
+ KNOWN_ELEMENT_TYPES.add(Constraint_Shape);
+ KNOWN_ELEMENT_TYPES.add(Comment_Shape);
+ KNOWN_ELEMENT_TYPES.add(ExecutionEnvironment_Shape);
+ KNOWN_ELEMENT_TYPES.add(Device_Shape);
+ KNOWN_ELEMENT_TYPES.add(Artifact_Shape);
+ KNOWN_ELEMENT_TYPES.add(Node_Shape);
+ KNOWN_ELEMENT_TYPES.add(NamedElement_DefaultShape);
+ KNOWN_ELEMENT_TYPES.add(DeploymentSpecification_Shape);
+ KNOWN_ELEMENT_TYPES.add(Model_Shape_CN);
+ KNOWN_ELEMENT_TYPES.add(Package_Shape_CN);
+ KNOWN_ELEMENT_TYPES.add(Device_Shape_CCN);
+ KNOWN_ELEMENT_TYPES.add(Device_Shape_CN);
+ KNOWN_ELEMENT_TYPES.add(ExecutionEnvironment_Shape_CCN);
+ KNOWN_ELEMENT_TYPES.add(ExecutionEnvironment_Shape_CN);
+ KNOWN_ELEMENT_TYPES.add(Node_Shape_CCN);
+ KNOWN_ELEMENT_TYPES.add(Node_Shape_CN);
+ KNOWN_ELEMENT_TYPES.add(Artifact_Shape_CCN);
+ KNOWN_ELEMENT_TYPES.add(Artifact_Shape_ACN);
+ KNOWN_ELEMENT_TYPES.add(Artifact_Shape_CN);
+ KNOWN_ELEMENT_TYPES.add(Comment_Shape_CN);
+ KNOWN_ELEMENT_TYPES.add(Constraint_Shape_CN);
+ KNOWN_ELEMENT_TYPES.add(DeploymentSpecification_Shape_CCN);
+ KNOWN_ELEMENT_TYPES.add(DeploymentSpecification_Shape_CN);
+ KNOWN_ELEMENT_TYPES.add(DeploymentSpecification_Shape_ACN);
+ KNOWN_ELEMENT_TYPES.add(Link_DescriptorEdge);
+ KNOWN_ELEMENT_TYPES.add(Comment_AnnotatedElementEdge);
+ KNOWN_ELEMENT_TYPES.add(Constraint_ConstrainedElementEdge);
+ KNOWN_ELEMENT_TYPES.add(Deployment_Edge);
+ KNOWN_ELEMENT_TYPES.add(Manifestation_Edge);
+ KNOWN_ELEMENT_TYPES.add(Generalization_Edge);
+ KNOWN_ELEMENT_TYPES.add(Dependency_Edge);
+ KNOWN_ELEMENT_TYPES.add(Dependency_BranchEdge);
+ KNOWN_ELEMENT_TYPES.add(CommunicationPath_Edge);
+ }
+
+ boolean result = KNOWN_ELEMENT_TYPES.contains(elementType);
+
+ if (!result) {
+ IElementType[] supertypes = elementType.getAllSuperTypes();
+ for (int i = 0; !result && (i < supertypes.length); i++) {
+ result = KNOWN_ELEMENT_TYPES.contains(supertypes[i]);
+ }
+ }
+
+ return result;
+ }
+
+ /**
+ * @generated
+ */
public static IElementType getElementType(String visualID) {
if (visualID != null) {
switch (visualID) {
@@ -516,63 +539,6 @@ public class UMLElementTypes {
/**
* @generated
*/
- public static synchronized boolean isKnownElementType(IElementType elementType) {
- if (KNOWN_ELEMENT_TYPES == null) {
- KNOWN_ELEMENT_TYPES = new HashSet<>();
- KNOWN_ELEMENT_TYPES.add(Package_DeploymentDiagram);
- KNOWN_ELEMENT_TYPES.add(Dependency_Shape);
- KNOWN_ELEMENT_TYPES.add(Model_Shape);
- KNOWN_ELEMENT_TYPES.add(Package_Shape);
- KNOWN_ELEMENT_TYPES.add(Constraint_Shape);
- KNOWN_ELEMENT_TYPES.add(Comment_Shape);
- KNOWN_ELEMENT_TYPES.add(ExecutionEnvironment_Shape);
- KNOWN_ELEMENT_TYPES.add(Device_Shape);
- KNOWN_ELEMENT_TYPES.add(Artifact_Shape);
- KNOWN_ELEMENT_TYPES.add(Node_Shape);
- KNOWN_ELEMENT_TYPES.add(NamedElement_DefaultShape);
- KNOWN_ELEMENT_TYPES.add(DeploymentSpecification_Shape);
- KNOWN_ELEMENT_TYPES.add(Model_Shape_CN);
- KNOWN_ELEMENT_TYPES.add(Package_Shape_CN);
- KNOWN_ELEMENT_TYPES.add(Device_Shape_CCN);
- KNOWN_ELEMENT_TYPES.add(Device_Shape_CN);
- KNOWN_ELEMENT_TYPES.add(ExecutionEnvironment_Shape_CCN);
- KNOWN_ELEMENT_TYPES.add(ExecutionEnvironment_Shape_CN);
- KNOWN_ELEMENT_TYPES.add(Node_Shape_CCN);
- KNOWN_ELEMENT_TYPES.add(Node_Shape_CN);
- KNOWN_ELEMENT_TYPES.add(Artifact_Shape_CCN);
- KNOWN_ELEMENT_TYPES.add(Artifact_Shape_ACN);
- KNOWN_ELEMENT_TYPES.add(Artifact_Shape_CN);
- KNOWN_ELEMENT_TYPES.add(Comment_Shape_CN);
- KNOWN_ELEMENT_TYPES.add(Constraint_Shape_CN);
- KNOWN_ELEMENT_TYPES.add(DeploymentSpecification_Shape_CCN);
- KNOWN_ELEMENT_TYPES.add(DeploymentSpecification_Shape_CN);
- KNOWN_ELEMENT_TYPES.add(DeploymentSpecification_Shape_ACN);
- KNOWN_ELEMENT_TYPES.add(Link_DescriptorEdge);
- KNOWN_ELEMENT_TYPES.add(Comment_AnnotatedElementEdge);
- KNOWN_ELEMENT_TYPES.add(Constraint_ConstrainedElementEdge);
- KNOWN_ELEMENT_TYPES.add(Deployment_Edge);
- KNOWN_ELEMENT_TYPES.add(Manifestation_Edge);
- KNOWN_ELEMENT_TYPES.add(Generalization_Edge);
- KNOWN_ELEMENT_TYPES.add(Dependency_Edge);
- KNOWN_ELEMENT_TYPES.add(Dependency_BranchEdge);
- KNOWN_ELEMENT_TYPES.add(CommunicationPath_Edge);
- }
-
- boolean result = KNOWN_ELEMENT_TYPES.contains(elementType);
-
- if (!result) {
- IElementType[] supertypes = elementType.getAllSuperTypes();
- for (int i = 0; !result && (i < supertypes.length); i++) {
- result = KNOWN_ELEMENT_TYPES.contains(supertypes[i]);
- }
- }
-
- return result;
- }
-
- /**
- * @generated
- */
public static final DiagramElementTypes TYPED_INSTANCE = new DiagramElementTypes(elementTypeImages) {
/**

Back to the top