94 | | * addFrame add a frame directly to the page, not to the currently selected group. |
| 94 | * addFrame adds a frame directly to the page, not to the currently selected group. |
| 95 | * Methods requiring resource copy (createGroup, deleteGroup) need to be refactored since template copying is not correct. There are currently 2 helper methods, which must be removed after refactoring of the templates. |
| 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. |