Exemplo n.º 1
0
  @Override
  public void readObject(DataInput in) throws IOException {
    super.readObject(in);

    // This fix was added in file version 2
    if (control.getCurrentFileVersion() > 1)
      ((NodeComponent) this.node).setDuplicateOnCloneTree(in.readBoolean());
  }
Exemplo n.º 2
0
 @Override
 public void writeObject(DataOutput out) throws IOException {
   super.writeObject(out);
   out.writeBoolean(((NodeComponent) this.node).getDuplicateOnCloneTree());
 }