184185186187188189190191192193194
List childList = new ArrayList(parent.getChildren()); List macroList = newTree.getChildren(); while (parent.getChildCount() > 0) { parent.deleteChild(0); } for (int i = 0; i < count; i++) { if (i == idx) { // add only there is something to add
186187188189190191192193194195196
185186187188189190191192193194195
181182183184185186187188189190191
177178179180181182183184185186187
187188189190191192193194195196197