diff --git a/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/model/Signal.java b/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/model/Signal.java index 5065cca37e9824670f9bc51af1a9eb5087b7db54..3d45a52eacd06f0667f37debc2041937a18e4e37 100644 --- a/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/model/Signal.java +++ b/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/model/Signal.java @@ -10,6 +10,7 @@ import org.eclipse.draw2d.geometry.Rectangle; import de.bmotionstudio.gef.editor.attribute.AttributeLights; import de.bmotionstudio.gef.editor.attribute.AttributeTrackDirection; import de.bmotionstudio.gef.editor.attribute.BAttributeHeight; +import de.bmotionstudio.gef.editor.attribute.BAttributeLabel; import de.bmotionstudio.gef.editor.attribute.BAttributeSize; import de.bmotionstudio.gef.editor.command.CreateCommand; @@ -54,6 +55,9 @@ public class Signal extends BControl { initAttribute(new AttributeTrackDirection(AttributeTrackDirection.RIGHT)); initAttribute(new AttributeLights(2)); + BAttributeLabel aLabel = new BAttributeLabel("Signal"); + initAttribute(aLabel); + } @Override diff --git a/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/part/SignalPart.java b/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/part/SignalPart.java index 33eadbe1c9c143dee2afe8008350eaf57a119d47..0a0560acabb64bd8b8e7130e6055082731fd930f 100644 --- a/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/part/SignalPart.java +++ b/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/part/SignalPart.java @@ -76,7 +76,7 @@ public class SignalPart extends BMSAbstractEditPart { } - if (aID.equals(AttributeConstants.ATTRIBUTE_ID)) { + if (aID.equals(AttributeConstants.ATTRIBUTE_LABEL)) { ((SignalFigure) getFigure()).setLabel(value.toString()); }