X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.plant3d%2Fsrc%2Forg%2Fsimantics%2Fplant3d%2Fscenegraph%2FNozzle.java;h=fec8c08447e539b5f9aa64449352508253aa2226;hb=1c986f49dd51037e0a189df77a76abce890ae8ae;hp=9c4ad6f6ce280d46df3ce31d0b1c383f31e39841;hpb=bcf3a9c994d2bda45fa3d2738fda8a14bb34cdcd;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 9c4ad6f6..fec8c084 100644 --- a/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/Nozzle.java +++ b/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/Nozzle.java @@ -53,6 +53,22 @@ public class Nozzle extends PipelineComponent { firePropertyChanged(Plant3D.URIs.HasNozzleId); } + 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); + } + private void _createCP() throws Exception{ if (controlPoint != null) return;