Commit eac87f94 authored by Tiziano Munaro's avatar Tiziano Munaro
Browse files

Fix interface check when setting the port color for mode automata

Issue-Ref: 3963
Issue-Url: https://af3-developer.fortiss.org/issues/3963

Signed-off-by: Tiziano Munaro's avatarTiziano Munaro <munaro@fortiss.org>
parent 00da95aa
ModeVisual.java 68adf9e5fa791a8185b182b8232b4e415c440b56 GREEN
SwitchSegmentContentConnectorVisual.java 20eeb1739a1fbc5449253463916b2fcfdd5b51d5 GREEN
SwitchSegmentContentConnectorVisual.java e32b6ad95ea076aea4e37c7900ab2bfa047cb7b4 YELLOW
SwitchSegmentDiagramConnectorVisual.java 501de4255c1e66249eb3d9a023b654d532dbad68 GREEN
......@@ -18,12 +18,12 @@ package org.fortiss.af3.mode.ui.editor.fx.visual;
import static javafx.scene.paint.Color.BLACK;
import static javafx.scene.paint.Color.WHITE;
import org.fortiss.tooling.common.ui.javafx.lwfxef.mvc.IContentAnchorageMVCBundle;
import org.fortiss.tooling.common.ui.javafx.lwfxef.visual.IContentVisual;
import org.fortiss.af3.mode.model.Mode;
import org.fortiss.af3.mode.model.SwitchSegmentConnector;
import org.fortiss.af3.state.model.TransitionSegmentEntryConnector;
import org.fortiss.af3.mode.model.SwitchSegmentEntryConnector;
import org.fortiss.tooling.base.ui.editor.fx.visual.NamedLayoutedCircularAnchorageContentVisual;
import org.fortiss.tooling.common.ui.javafx.lwfxef.mvc.IContentAnchorageMVCBundle;
import org.fortiss.tooling.common.ui.javafx.lwfxef.visual.IContentVisual;
import javafx.scene.paint.Paint;
......@@ -44,7 +44,7 @@ public class SwitchSegmentContentConnectorVisual
@Override
protected Paint getFillColor() {
SwitchSegmentConnector c = getModelElement();
if(c instanceof TransitionSegmentEntryConnector) {
if(c instanceof SwitchSegmentEntryConnector) {
return WHITE;
}
return BLACK;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment