// drop is in form from tree store
List<ModelData> children = new ArrayList<ModelData>();
for (ModelData tm : models) {
ModelData child = tm.get("model");
children.add(child);
}
if (p == null) {
tree.getStore().insert(children, index, false);
} else {
tree.getStore().insert(p, children, index, false);
}
for (ModelData tm : models) {
ModelData child = tm.get("model");
List sub = (List) ((TreeModel) tm).getChildren();
appendModel(child, sub, 0);
}
return;
}