Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contribution/UMLPortEditorPropertyUtil.java7
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contributions/UMLPropertyEditorPropertyUtil.java3
2 files changed, 4 insertions, 6 deletions
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contribution/UMLPortEditorPropertyUtil.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contribution/UMLPortEditorPropertyUtil.java
index 32937cc2b3d..c2c8ec22991 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contribution/UMLPortEditorPropertyUtil.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contribution/UMLPortEditorPropertyUtil.java
@@ -28,21 +28,20 @@ public class UMLPortEditorPropertyUtil extends PortUtil {
public static String getLabel(Port port) {
StringBuffer buffer = new StringBuffer();
// visibility
- buffer.append(" ");
buffer.append(NamedElementUtil.getVisibilityAsSign(port));
+ buffer.append(" ");
// derived property
buffer.append(getDerived(port));
// name
- buffer.append(" ");
buffer.append(ALFIDConverter.nameToID(getName(port)));
// is conjugated
if (port.isConjugated()) {
- buffer.append(": ~");
+ buffer.append(" : ~");
} else {
- buffer.append(": ");
+ buffer.append(" : ");
}
// type
if (port.getType() != null) {
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contributions/UMLPropertyEditorPropertyUtil.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contributions/UMLPropertyEditorPropertyUtil.java
index 4e78f04a0b1..427c2b953c1 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contributions/UMLPropertyEditorPropertyUtil.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contributions/UMLPropertyEditorPropertyUtil.java
@@ -28,14 +28,13 @@ public class UMLPropertyEditorPropertyUtil extends PropertyUtil {
public static String getLabel(Property property) {
StringBuffer buffer = new StringBuffer();
// visibility
- buffer.append(" ");
buffer.append(NamedElementUtil.getVisibilityAsSign(property));
+ buffer.append(" ");
// derived property
buffer.append(getDerived(property));
// name
- buffer.append(" ");
buffer.append(ALFIDConverter.nameToID(getName(property)));
// type

Back to the top