X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.plant3d%2Fsrc%2Forg%2Fsimantics%2Fplant3d%2Fscenegraph%2FNozzle.java;h=55773f0f6a682921b01feef89d0697e1ac7624c5;hb=c44f3e6;hp=fec8c08447e539b5f9aa64449352508253aa2226;hpb=234ba3c6f70dfa56fce5a9e9af25d6e8a7ddff6e;p=simantics%2F3d.git diff --git a/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/Nozzle.java b/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/Nozzle.java index fec8c084..55773f0f 100644 --- a/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/Nozzle.java +++ b/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/Nozzle.java @@ -54,20 +54,20 @@ public class Nozzle extends PipelineComponent { } private boolean fixed = false; - - @RelatedGetValue(Plant3D.URIs.IsFixedNozzle) - @GetPropertyValue(name="Fixed", value=Plant3D.URIs.IsFixedNozzle, tabId="Default") - public boolean isFixed() { - return fixed; - } - - @RelatedSetValue(Plant3D.URIs.IsFixedNozzle) - public void setFixed(boolean fixed) { - if (fixed == this.fixed) - return; - this.fixed = fixed; - firePropertyChanged(Plant3D.URIs.IsFixedNozzle); - } + + @RelatedGetValue(Plant3D.URIs.IsFixedNozzle) + @GetPropertyValue(name="Fixed", value=Plant3D.URIs.IsFixedNozzle, tabId="Default") + public boolean isFixed() { + return fixed; + } + + @RelatedSetValue(Plant3D.URIs.IsFixedNozzle) + public void setFixed(boolean fixed) { + if (fixed == this.fixed) + return; + this.fixed = fixed; + firePropertyChanged(Plant3D.URIs.IsFixedNozzle); + } private void _createCP() throws Exception{ if (controlPoint != null) @@ -134,7 +134,7 @@ public class Nozzle extends PipelineComponent { PipeRun pipeRun = getPipeRun(); if (pipeRun != null) { - map.put("length", pipeRun.getPipeDiameter() * 2.0); + //map.put("length", pipeRun.getPipeDiameter() * 2.0); map.put("radius", pipeRun.getPipeDiameter() * 0.5); } return map;