Bläddra i källkod

Removed <name> attribute for entry states

Andreas Mülder 12 år sedan
förälder
incheckning
ee3a45fe6c

+ 12 - 0
plugins/org.yakindu.sct.ui.editor/src/org/yakindu/sct/ui/editor/editparts/NamedElementLabelEditPart.java

@@ -10,11 +10,14 @@
  */
 package org.yakindu.sct.ui.editor.editparts;
 
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
 import org.eclipse.gmf.runtime.notation.View;
 import org.yakindu.base.base.BasePackage;
 import org.yakindu.sct.ui.editor.DiagramActivator;
 
 import de.itemis.gmf.runtime.commons.editparts.TextAwareLabelEditPart;
+import de.itemis.gmf.runtime.commons.parsers.StringAttributeParser;
 
 /**
  * 
@@ -27,4 +30,13 @@ public class NamedElementLabelEditPart extends TextAwareLabelEditPart {
 		super(view, BasePackage.Literals.NAMED_ELEMENT__NAME,
 				DiagramActivator.PLUGIN_ID);
 	}
+
+	public IParser getParser() {
+		return new StringAttributeParser(feature, pluginId) {
+			@Override
+			protected String createEmptyStringLabel(EAttribute attribute) {
+				return "";
+			}
+		};
+	}
 }