diff --git a/de.bmotionstudio.gef.editor/plugin.xml b/de.bmotionstudio.gef.editor/plugin.xml index cea3db2922feacc02bb59e9691cdfb4d220b03aa..f1d465afcd7efc7c5ebae8ca9f8eeb8541137848 100644 --- a/de.bmotionstudio.gef.editor/plugin.xml +++ b/de.bmotionstudio.gef.editor/plugin.xml @@ -625,6 +625,15 @@ </control> <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 diff --git a/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/figure/SwitchFigure.java b/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/figure/SwitchFigure.java index 64342016e63d11dc3ab11d80ad4b13fd8ffe931a..3e2436ac384a2b478d3fe8945bb33182aa223eda 100644 --- a/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/figure/SwitchFigure.java +++ b/de.bmotionstudio.gef.editor/src/de/bmotionstudio/gef/editor/figure/SwitchFigure.java @@ -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;