if(h.getSceneGraphObject() instanceof AnimatorGroup){
ang=h;
break;
}
}
CompoundEdit ce=new CompoundEdit();
if(ang==null){
// create one
AnimatorGroup ag=new AnimatorGroup();
holder.addSceneGraphObject(ag);
AddEdit ae=new AddEdit(holder,ag,null);
ce.addEdit(ae);
}
list.clear();
holder.getChildrenHolders(list);
for(SceneGraphObjectHolder h : list){
if(h.getSceneGraphObject() instanceof AnimatorGroup){
ang=h;
break;
}
}
if(ang==null){
throw new RuntimeException("Can not retrieve holder for animator group");
}
ang.addSceneGraphObject(an);
AddEdit ae=new AddEdit(ang,an,null);
ce.addEdit(ae);
holder.getUndoableEditListener().undoableEditHappened(
new UndoableEditEvent(source, ce));
ArrayList<SceneGraphObjectHolder> cl=new ArrayList<SceneGraphObjectHolder>();