96 | 96 | * Copying each resource in order to change its parent and calling fixTemplate() method is very slow. Since the children of a group are also templated, we need to call these methods recursively, which makes the whole process too slow. Furthermore, testing this structure is not an easy task, since our orignal elements are deleted - our new group practically does not contain the passed elements. So, copying resources could be error prone. However, for now, this is the only way to change a resource's parent. |
97 | 97 | * Making a copied resource requires deleting the old one. This resource functionality is currently almost not working, since deleting a resource with children causes too much exceptions(delete a page from the resource palette, for example). Deep deleting of a resource is also not implemented. Implementing such method in Group is not enough, since we only know that a group contains resources. So, the side effect of this is that when we create/delete groups, it is possible to see multiplying frames in the AllResourcesPalette. |