예제 #1
0
  public void setParentModel(CompoundModel parent) {
    super.setParentModel(parent);

    // if a parent of a model is set as null, do not update ClusterManager
    if (parent != null) {
      setClusterManager(parent.getClusterManager());
    }
  }
예제 #2
0
 public void undo() {
   parent.addChild(child);
   child.setParentModel(parent);
   restoreConnections();
 }