diff options
author | aradermache | 2013-06-25 15:00:27 +0000 |
---|---|---|
committer | aradermache | 2013-06-25 15:00:27 +0000 |
commit | 642b4963328fa2f0fdb3dd3b3359cbcadd05f8a7 (patch) | |
tree | fb4cd0b894ee198a60b6b984b8aec641962c73b0 /extraplugins/qompass-designer/org.eclipse.papyrus.qompass.modellibs.core/src/org/eclipse/papyrus/qompass/modellibs/core | |
parent | c72a9a12d2dda0437443540dc4849c7037c266b0 (diff) | |
download | org.eclipse.papyrus-642b4963328fa2f0fdb3dd3b3359cbcadd05f8a7.tar.gz org.eclipse.papyrus-642b4963328fa2f0fdb3dd3b3359cbcadd05f8a7.tar.xz org.eclipse.papyrus-642b4963328fa2f0fdb3dd3b3359cbcadd05f8a7.zip |
- Cleanup - removed "System.err.println" and moved images into "figs" sub-folders
- Some preparation for "C" language support
Diffstat (limited to 'extraplugins/qompass-designer/org.eclipse.papyrus.qompass.modellibs.core/src/org/eclipse/papyrus/qompass/modellibs/core')
2 files changed, 5 insertions, 6 deletions
diff --git a/extraplugins/qompass-designer/org.eclipse.papyrus.qompass.modellibs.core/src/org/eclipse/papyrus/qompass/modellibs/core/CallEventConfigurator.java b/extraplugins/qompass-designer/org.eclipse.papyrus.qompass.modellibs.core/src/org/eclipse/papyrus/qompass/modellibs/core/CallEventConfigurator.java index 8b29d06e227..147ab53e11b 100644 --- a/extraplugins/qompass-designer/org.eclipse.papyrus.qompass.modellibs.core/src/org/eclipse/papyrus/qompass/modellibs/core/CallEventConfigurator.java +++ b/extraplugins/qompass-designer/org.eclipse.papyrus.qompass.modellibs.core/src/org/eclipse/papyrus/qompass/modellibs/core/CallEventConfigurator.java @@ -53,10 +53,10 @@ public class CallEventConfigurator implements IInstanceConfigurator { if(context != null) { // make sure that there is an enum par port String literalName = "port_" + UMLTool.varName(context.port); - literalName = "0"; + // literalName = "0"; // the associated enumeration is declared by the statemachine (which is included by the bootloader as well) - DepPlanUtils.configureProperty(instance, portAttribute, literalName); + DepPlanUtils.configureProperty(instance, portAttribute, 0); } } diff --git a/extraplugins/qompass-designer/org.eclipse.papyrus.qompass.modellibs.core/src/org/eclipse/papyrus/qompass/modellibs/core/mappingrules/ExtendedPort.java b/extraplugins/qompass-designer/org.eclipse.papyrus.qompass.modellibs.core/src/org/eclipse/papyrus/qompass/modellibs/core/mappingrules/ExtendedPort.java index 82f689457c2..7227b1bdcc7 100644 --- a/extraplugins/qompass-designer/org.eclipse.papyrus.qompass.modellibs.core/src/org/eclipse/papyrus/qompass/modellibs/core/mappingrules/ExtendedPort.java +++ b/extraplugins/qompass-designer/org.eclipse.papyrus.qompass.modellibs.core/src/org/eclipse/papyrus/qompass/modellibs/core/mappingrules/ExtendedPort.java @@ -84,9 +84,8 @@ public class ExtendedPort implements IMappingRule { try { TemplateBinding binding = TemplateUtils.fixedBinding(model, extendedPort, (Classifier)type); - Copy sat = new Copy(model, model, false); - System.err.println(model.getQualifiedName()); - TemplateInstantiation ti = new TemplateInstantiation(sat, binding); + Copy copy = new Copy(model, model, false); + TemplateInstantiation ti = new TemplateInstantiation(copy, binding); // create a bound element of the extended port. Add bound class to derived interface class Class boundClass = ti.bindNamedElement(extendedPort); derivedInterface.getNearestPackage().getPackagedElements().add(boundClass); @@ -105,7 +104,7 @@ public class ExtendedPort implements IMappingRule { if(derivedIntf != null) { for(Operation op : derivedIntf.getAllOperations()) { - String name = port.getName() + "_" + op.getName(); + String name = port.getName() + "_" + op.getName(); //$NON-NLS-1$ // check whether operation already exists. Create, if not Operation derivedOperation = derivedInterface.getOperation(name, null, null); |