Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenn Hussey2011-08-22 04:05:56 +0000
committerKenn Hussey2011-08-22 04:05:56 +0000
commitfe5a8731c7643112705a2ef9294585c89c7afa13 (patch)
tree601354cb142189fbacaab3746c2b68a0e4a04f74 /plugins/org.eclipse.uml2.uml
parent7b152f6578b888f1d943851f2482e2a0a02317aa (diff)
downloadorg.eclipse.uml2.test-fe5a8731c7643112705a2ef9294585c89c7afa13.tar.gz
org.eclipse.uml2.test-fe5a8731c7643112705a2ef9294585c89c7afa13.tar.xz
org.eclipse.uml2.test-fe5a8731c7643112705a2ef9294585c89c7afa13.zip
[327039] Fixing references to standard profiles.
Diffstat (limited to 'plugins/org.eclipse.uml2.uml')
-rw-r--r--plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/ClassOperations.java2
-rw-r--r--plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/ModelOperations.java2
-rw-r--r--plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/PackageOperations.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/ClassOperations.java b/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/ClassOperations.java
index b46b6879..e6f2b55d 100644
--- a/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/ClassOperations.java
+++ b/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/ClassOperations.java
@@ -184,7 +184,7 @@ public class ClassOperations
* @generated NOT
*/
public static boolean isMetaclass(org.eclipse.uml2.uml.Class class_) {
- return class_.getAppliedStereotype("StandardL2" //$NON-NLS-1$
+ return class_.getAppliedStereotype("StandardProfileL2" //$NON-NLS-1$
+ NamedElement.SEPARATOR + "Metaclass") != null; //$NON-NLS-1$
}
diff --git a/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/ModelOperations.java b/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/ModelOperations.java
index 1d916da1..0af3b932 100644
--- a/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/ModelOperations.java
+++ b/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/ModelOperations.java
@@ -52,7 +52,7 @@ public class ModelOperations
* @generated NOT
*/
public static boolean isMetamodel(Model model) {
- return model.getAppliedStereotype("StandardL3" //$NON-NLS-1$
+ return model.getAppliedStereotype("StandardProfileL3" //$NON-NLS-1$
+ NamedElement.SEPARATOR + "Metamodel") != null; //$NON-NLS-1$
}
diff --git a/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/PackageOperations.java b/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/PackageOperations.java
index 97b61d49..bbddcb59 100644
--- a/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/PackageOperations.java
+++ b/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/PackageOperations.java
@@ -982,7 +982,7 @@ public class PackageOperations
* @generated NOT
*/
public static boolean isModelLibrary(org.eclipse.uml2.uml.Package package_) {
- return package_.getAppliedStereotype("StandardL3" //$NON-NLS-1$
+ return package_.getAppliedStereotype("StandardProfileL3" //$NON-NLS-1$
+ NamedElement.SEPARATOR + "ModelLibrary") != null; //$NON-NLS-1$
}

Back to the top