Skip to content
Snippets Groups Projects
Commit bb2cd6fa authored by Lukas Ladenberger's avatar Lukas Ladenberger
Browse files

added label attribute to signal

parent 582cb949
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment