コード例 #1
0
ファイル: CompoundModel.java プロジェクト: yenaoh90/chibe
  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
ファイル: DeleteCommand.java プロジェクト: yenaoh90/chibe
 public void undo() {
   parent.addChild(child);
   child.setParentModel(parent);
   restoreConnections();
 }