Esempio n. 1
0
 /**
  * @param node The node which still contains the old group.
  * @param newGroup The new group to replace the one currently stored in <b>node </b>.
  */
 public UndoableModifyGroup(
     GroupSelector gs, GroupTreeNode groupsRoot, GroupTreeNode node, AbstractGroup newGroup) {
   m_groupSelector = gs;
   m_oldGroupBackup = node.getGroup().deepCopy();
   m_newGroupBackup = newGroup.deepCopy();
   m_pathToNode = node.getIndexedPath();
   m_groupsRootHandle = groupsRoot;
 }
Esempio n. 2
0
 @Override
 public void redo() {
   super.redo();
   m_groupsRootHandle.getDescendant(m_pathToNode).setGroup(m_newGroupBackup.deepCopy());
   m_groupSelector.revalidateGroups();
 }