From 4d7d550d9bb30def5d30bc559823877493abcbf5 Mon Sep 17 00:00:00 2001 From: lehtonen Date: Thu, 24 Mar 2011 00:09:16 +0000 Subject: [PATCH] * Implemented unique and automatic local diagram flag labeling. * Added a preference page for configuring a project-wide default setting for the currently used labeling scheme See FlagLabelingScheme, Splitter and ConnectionBuilder for implementation and use. fixes #1518 fixes #1656 fixes #1643 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@20205 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../sysdyn/ui/editor/participant/SysdynConnectionBuilder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/SysdynConnectionBuilder.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/SysdynConnectionBuilder.java index ed27b294..5d48050f 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/SysdynConnectionBuilder.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/SysdynConnectionBuilder.java @@ -108,7 +108,7 @@ public class SysdynConnectionBuilder extends ConnectionBuilder{ if (startTerminal != null) { startConnector = createConnectorForNode(graph, connection, startTerminal, EdgeEnd.Begin, judgment); } else if (createFlags) { - startFlag = createFlag(graph, connection, EdgeEnd.Begin, controlPoints.getFirst(), FlagClass.Type.In); + startFlag = createFlag(graph, connection, EdgeEnd.Begin, controlPoints.getFirst(), FlagClass.Type.In, ""); ArrayList terminals = new ArrayList(); ElementUtils.getTerminals(startFlag, terminals, false); Terminal st = terminals.get(1); @@ -122,7 +122,7 @@ public class SysdynConnectionBuilder extends ConnectionBuilder{ if(createValve) endFlag = createValveElement(graph, connection, EdgeEnd.End, controlPoints.getLast()); else - endFlag = createFlag(graph, connection, EdgeEnd.End, controlPoints.getLast(), FlagClass.Type.Out); + endFlag = createFlag(graph, connection, EdgeEnd.End, controlPoints.getLast(), FlagClass.Type.Out, ""); ArrayList terminals = new ArrayList(); ElementUtils.getTerminals(endFlag, terminals, false); Terminal et = terminals.get(0); -- 2.47.1