]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Prevented the creation of valves when connection is dependency
authorlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 14 Sep 2010 10:56:43 +0000 (10:56 +0000)
committerlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 14 Sep 2010 10:56:43 +0000 (10:56 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@17903 ac1ea38d-2e2b-0410-8846-a27921b304fc

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

index 10fc52a33d9f2419824f057e53f3532652cac090..f61b2f95f42a9bfb610af719a150d5540e8c4453 100644 (file)
@@ -198,6 +198,8 @@ public class ConnectTool extends AbstractDiagramParticipant {
 \r
 \r
        private void createValveIfNecessary(Point2D point) {\r
+               if (!isCurrentConnectionFlow()) return;\r
+               \r
                if(startElement != null && startElement.getElementClass().getId().equals(ValveFactory.class.getSimpleName())) {\r
                        return;\r
                } else if(endElement != null && endElement.getElementClass().getId().equals(ValveFactory.class.getSimpleName())) {\r