Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnsgar Radermacher2015-04-03 10:02:40 -0400
committerAnsgar Radermacher2015-04-03 10:03:31 -0400
commit189e6ef1601292ea918eb6f4ab22150c361b14b2 (patch)
treed44745e6fe4872244ffd4ecc3eae65be9c4a8007
parent8829dea2a25caa7f1d40d7b0e0ce64fd7e207399 (diff)
downloadorg.eclipse.papyrus-189e6ef1601292ea918eb6f4ab22150c361b14b2.tar.gz
org.eclipse.papyrus-189e6ef1601292ea918eb6f4ab22150c361b14b2.tar.xz
org.eclipse.papyrus-189e6ef1601292ea918eb6f4ab22150c361b14b2.zip
463003 - [C++ codegen] regressions related to templates and initializers (restore old API as deprecated)
-rw-r--r--extraplugins/codegen/org.eclipse.papyrus.codegen.base/src/org/eclipse/papyrus/codegen/base/GenUtils.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/extraplugins/codegen/org.eclipse.papyrus.codegen.base/src/org/eclipse/papyrus/codegen/base/GenUtils.java b/extraplugins/codegen/org.eclipse.papyrus.codegen.base/src/org/eclipse/papyrus/codegen/base/GenUtils.java
index f71c2d7856d..aee25e4a055 100644
--- a/extraplugins/codegen/org.eclipse.papyrus.codegen.base/src/org/eclipse/papyrus/codegen/base/GenUtils.java
+++ b/extraplugins/codegen/org.eclipse.papyrus.codegen.base/src/org/eclipse/papyrus/codegen/base/GenUtils.java
@@ -55,6 +55,21 @@ public class GenUtils {
public static final String NL = System.getProperties().getProperty("line.separator"); //$NON-NLS-1$
/**
+ * Retrieve template bindings for the class passed as a Parameter
+ * only one template binding can exist for an element
+ *
+ * @param current
+ * Class on which the template binding is searched
+ * @return the template binding of current Class
+ *
+ * @deprecated use {@link #getTemplateBinding()} instead.
+ */
+ @Deprecated
+ public static TemplateBinding getTemplateBindings(org.eclipse.uml2.uml.Class current) {
+ return getTemplateBinding(current);
+ }
+
+ /**
* Retrieve first template binding from list of template bindings, if
* exactly one exists. Return null otherwise.
*

Back to the top