]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
* Implemented unique and automatic local diagram flag labeling.
authorlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 24 Mar 2011 00:09:16 +0000 (00:09 +0000)
committerlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 24 Mar 2011 00:09:16 +0000 (00:09 +0000)
* 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

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/SysdynConnectionBuilder.java

index ed27b29433cb32102b2e44933394384fe3a2c4c2..5d48050f700346664fb6f49f4499a020249730e5 100644 (file)
@@ -108,7 +108,7 @@ public class SysdynConnectionBuilder extends ConnectionBuilder{
         if (startTerminal != null) {\r
             startConnector = createConnectorForNode(graph, connection, startTerminal, EdgeEnd.Begin, judgment);\r
         } else if (createFlags) {\r
-            startFlag = createFlag(graph, connection, EdgeEnd.Begin, controlPoints.getFirst(), FlagClass.Type.In);\r
+            startFlag = createFlag(graph, connection, EdgeEnd.Begin, controlPoints.getFirst(), FlagClass.Type.In, "");\r
                        ArrayList<Terminal> terminals = new ArrayList<Terminal>();\r
                        ElementUtils.getTerminals(startFlag, terminals, false);\r
                        Terminal st = terminals.get(1);\r
@@ -122,7 +122,7 @@ public class SysdynConnectionBuilder extends ConnectionBuilder{
                if(createValve)\r
                 endFlag = createValveElement(graph, connection, EdgeEnd.End, controlPoints.getLast());\r
                else\r
-                       endFlag = createFlag(graph, connection, EdgeEnd.End, controlPoints.getLast(), FlagClass.Type.Out);\r
+                       endFlag = createFlag(graph, connection, EdgeEnd.End, controlPoints.getLast(), FlagClass.Type.Out, "");\r
                        ArrayList<Terminal> terminals = new ArrayList<Terminal>();\r
                        ElementUtils.getTerminals(endFlag, terminals, false);\r
                        Terminal et = terminals.get(0);\r