diff options
author | Camille Letavernier | 2014-10-22 14:15:43 +0000 |
---|---|---|
committer | Camille Letavernier | 2014-10-22 14:59:49 +0000 |
commit | 327c8c5b0e7265dc424c224a6e800249d601cc2c (patch) | |
tree | 2e3bb599a65a979861285dd71a412087e7e3a2c8 | |
parent | 27f05ae2e8877dd129c07d025eccd5abd009fc3d (diff) | |
download | org.eclipse.papyrus-327c8c5b0e7265dc424c224a6e800249d601cc2c.tar.gz org.eclipse.papyrus-327c8c5b0e7265dc424c224a6e800249d601cc2c.tar.xz org.eclipse.papyrus-327c8c5b0e7265dc424c224a6e800249d601cc2c.zip |
448384: [XText Editors] Embedded editors must be improved
https://bugs.eclipse.org/bugs/show_bug.cgi?id=448384
- Minor changes to the initial text formatting (Properties & Ports)
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
|