- this.next._removeRef(this);
- this.next = comp;
- this.syncnext = false;
- if (DEBUG) System.out.println(this + " next " + comp);
- syncNext();
- firePropertyChanged(Plant3D.URIs.HasNext);
- if (comp != null)
- comp.sync();
-
+ this.next._removeRef(this);
+ _setNext(comp);
+ this.syncnext = false;
+ if (DEBUG) System.out.println(this + " next " + comp);
+ syncNext();
+ firePropertyChanged(Plant3D.URIs.HasNext);
+ if (comp != null)
+ comp.sync();
+ }
+
+ protected void _setNext(PipelineComponent comp) {
+ this.next = comp;