summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabriel Pascual2014-05-27 11:26:33 (EDT)
committerGabriel Pascual2014-05-27 11:26:33 (EDT)
commita2e25537fa34bf296dde494fcbb75c21a9848514 (patch)
tree7994ef36738b848d27ee094f6bace06b9f95fa73
parent773d64eab333c06cae5e363d8f140f8efe9347a5 (diff)
downloadorg.eclipse.papyrus-a2e25537fa34bf296dde494fcbb75c21a9848514.zip
org.eclipse.papyrus-a2e25537fa34bf296dde494fcbb75c21a9848514.tar.gz
org.eclipse.papyrus-a2e25537fa34bf296dde494fcbb75c21a9848514.tar.bz2
359270: [ClassDiagram] Multiplicity of return parameter of operation notrefs/changes/85/27385/1
shown in class diagram https://bugs.eclipse.org/bugs/show_bug.cgi?id=359270 - Add possibility to set operation multiplicity display by a diagram appearance property in associated properties view Change-Id: Idb671cc168f5357c788c559cbe16d261424c021d Signed-off-by: Gabriel Pascual <gabriel.pascual@all4tec.net>
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/helper/OperationLabelHelper.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/helper/OperationLabelHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/helper/OperationLabelHelper.java
index da67378..65190a2 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/helper/OperationLabelHelper.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/helper/OperationLabelHelper.java
@@ -9,6 +9,7 @@
*
* Contributors:
* Remi Schnekenburger (CEA LIST) - Initial API and implementation
+ * Gabriel Pascual (ALL4TEC) - Bug 359270
*
*****************************************************************************/
package org.eclipse.papyrus.uml.diagram.common.helper;
@@ -30,7 +31,7 @@ import org.eclipse.uml2.uml.Operation;
public class OperationLabelHelper extends StereotypedElementLabelHelper {
/**
- * singelton instance
+ * singleton instance
*/
private static OperationLabelHelper labelHelper;
@@ -60,6 +61,7 @@ public class OperationLabelHelper extends StereotypedElementLabelHelper {
masks.put(ICustomAppearance.DISP_PARAMETER_DIRECTION, "Parameters Direction");
masks.put(ICustomAppearance.DISP_PARAMETER_TYPE, "Parameters Type");
masks.put(ICustomAppearance.DISP_RT_TYPE, "Return Type");
+ masks.put(ICustomAppearance.DISP_RT_MULTIPLICITY, "Return Multiplicity");
masks.put(ICustomAppearance.DISP_PARAMETER_MULTIPLICITY, "Parameters Multiplicity");
masks.put(ICustomAppearance.DISP_PARAMETER_DEFAULT, "Parameters Default Value");
masks.put(ICustomAppearance.DISP_PARAMETER_MODIFIERS, "Parameters Modifiers");