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

assigned external script observer to railway controls

parent 04dc1781
No related branches found
No related tags found
No related merge requests found
......@@ -626,6 +626,15 @@
<control
id="de.bmotionstudio.gef.editor.signal">
</control>
<control
id="de.bmotionstudio.gef.editor.switch">
</control>
<control
id="de.bmotionstudio.gef.editor.track">
</control>
<control
id="de.bmotionstudio.gef.editor.tracknode">
</control>
</observer>
<observer
id="de.bmotionstudio.gef.editor.observer.SwitchImage">
......
......@@ -14,7 +14,6 @@ import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.RGB;
import org.eclipse.swt.widgets.Display;
public class SwitchFigure extends AbstractBMotionFigure {
Color borderColor = new Color(Display.getDefault(), new RGB(235, 235, 235));
......@@ -27,6 +26,8 @@ public class SwitchFigure extends AbstractBMotionFigure {
@Override
protected void paintBorder(Graphics g) {
Rectangle r = getClientArea();
if (!this.visible && !isRunning())
g.setAlpha(255);
g.setForegroundColor(borderColor);
g.setLineStyle(SWT.LINE_DASH);
r.height += -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment