commit | 28a715dc929e43dd521cef6b83ae21d53fac3207 | [log] [tgz] |
---|---|---|
author | Ed Merks <ed.merks@gmail.com> | Thu Jun 07 18:10:45 2012 +0200 |
committer | Ed Merks <ed.merks@gmail.com> | Thu Jun 07 18:10:45 2012 +0200 |
tree | 3573943cfe56e5d934786b225a740d70cb9154e3 | |
parent | 97fa2e41293efe1f526ddf3f875f0e047a181472 [diff] |
[381489] Fix parameter names for setting method in API.
diff --git a/plugins/org.eclipse.emf.ecore.xcore/src/org/eclipse/emf/ecore/xcore/util/XcoreJvmInferrer.java b/plugins/org.eclipse.emf.ecore.xcore/src/org/eclipse/emf/ecore/xcore/util/XcoreJvmInferrer.java index 8cc4ca9..97bc55a 100644 --- a/plugins/org.eclipse.emf.ecore.xcore/src/org/eclipse/emf/ecore/xcore/util/XcoreJvmInferrer.java +++ b/plugins/org.eclipse.emf.ecore.xcore/src/org/eclipse/emf/ecore/xcore/util/XcoreJvmInferrer.java
@@ -1906,10 +1906,13 @@ @Override public void inferName() { - inferredElement.setName("new" + genFeature.getCapName()); + inferredElement.setName(isImplementation ? "new" + genFeature.getCapName() : "value"); } }; - associate(genFeature, valueParameterInferrefer); + if (isImplementation) + { + associate(genFeature, valueParameterInferrefer); + } jvmOperation.getParameters().add(valueParameterInferrefer.getInferredElement()); return jvmOperation; }