diff options
Diffstat (limited to 'extraplugins/codegen/org.eclipse.papyrus.cpp.codegen/src/org/eclipse/papyrus/cpp/codegen/StdStereo.java')
-rw-r--r-- | extraplugins/codegen/org.eclipse.papyrus.cpp.codegen/src/org/eclipse/papyrus/cpp/codegen/StdStereo.java | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/extraplugins/codegen/org.eclipse.papyrus.cpp.codegen/src/org/eclipse/papyrus/cpp/codegen/StdStereo.java b/extraplugins/codegen/org.eclipse.papyrus.cpp.codegen/src/org/eclipse/papyrus/cpp/codegen/StdStereo.java index 16e8aec7fed..e70c7807870 100644 --- a/extraplugins/codegen/org.eclipse.papyrus.cpp.codegen/src/org/eclipse/papyrus/cpp/codegen/StdStereo.java +++ b/extraplugins/codegen/org.eclipse.papyrus.cpp.codegen/src/org/eclipse/papyrus/cpp/codegen/StdStereo.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006 - 2012 CEA LIST. + * Copyright (c) 2006 - 2013 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 @@ -13,17 +13,22 @@ package org.eclipse.papyrus.cpp.codegen; import org.eclipse.papyrus.acceleo.GenUtils; import org.eclipse.uml2.uml.Element; +import org.eclipse.uml2.uml.Namespace; public class StdStereo { - public final static String create = "Create"; + public final static String create = "Create"; //$NON-NLS-1$ - public final static String destroy = "Destroy"; + + public final static String destroy = "Destroy"; //$NON-NLS-1$ /** * In the UML 2.4 plugin, the Standard profile is split into an L2 and an L3 profile */ - public final static String[] namespaces = { "Standard", "StandardProfileL2" }; + public final static String[] namespaces = { + "Standard", //$NON-NLS-1$ + "StandardProfileL2" //$NON-NLS-1$ + }; /** * Check whether a stereotype of the standard profile is applied @@ -37,7 +42,7 @@ public class StdStereo { */ public static boolean isApplied(Element element, String stdName) { for(String namespace : namespaces) { - if(GenUtils.hasStereotype(element, namespace + "::" + stdName)) { + if(GenUtils.hasStereotype(element, namespace + Namespace.SEPARATOR + stdName)) { return true; } } |