Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcmraidha2013-09-10 09:39:18 +0000
committercmraidha2013-09-10 09:39:18 +0000
commitcb3cac1a7280de58b697ba7fa33e0c6c534d15ec (patch)
treeac305b6ca0e79a579c36b9f4d17aa17fb8615cfb
parenta2fa87aef1f7a0b88648451444482fa41b2b3c90 (diff)
downloadorg.eclipse.papyrus-cb3cac1a7280de58b697ba7fa33e0c6c534d15ec.tar.gz
org.eclipse.papyrus-cb3cac1a7280de58b697ba7fa33e0c6c534d15ec.tar.xz
org.eclipse.papyrus-cb3cac1a7280de58b697ba7fa33e0c6c534d15ec.zip
Static profile DataType bug fix
-rw-r--r--plugins/uml/tools/org.eclipse.papyrus.uml.tools.utils/src/org/eclipse/papyrus/uml/tools/utils/DataTypeUtil.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/uml/tools/org.eclipse.papyrus.uml.tools.utils/src/org/eclipse/papyrus/uml/tools/utils/DataTypeUtil.java b/plugins/uml/tools/org.eclipse.papyrus.uml.tools.utils/src/org/eclipse/papyrus/uml/tools/utils/DataTypeUtil.java
index 1452b39bdec..11d2eb0665c 100644
--- a/plugins/uml/tools/org.eclipse.papyrus.uml.tools.utils/src/org/eclipse/papyrus/uml/tools/utils/DataTypeUtil.java
+++ b/plugins/uml/tools/org.eclipse.papyrus.uml.tools.utils/src/org/eclipse/papyrus/uml/tools/utils/DataTypeUtil.java
@@ -33,6 +33,8 @@ public class DataTypeUtil {
public static boolean isDataTypeDefinition(EClass eclass){
if(eclass.getEAnnotations().size() > 0) {
UMLPackage.eINSTANCE.getNsURI();
+ if(eclass.getEAnnotation("DataType") != null)
+ return true;
EAnnotation eAnnotation = eclass.getEAnnotation(UMLUtil.UML2_UML_PACKAGE_2_0_NS_URI);
if(eAnnotation!=null) {
if((eAnnotation.getReferences().get(0) instanceof org.eclipse.uml2.uml.DataType)) {

Back to the top