/** * Undeletes a node that already exists in the workspace, by setting appropriate flags and re-adding to parent's child map. * * @param nodeToUndelete WorkspaceNode to undelete * @param parent parent of node to undelete */ @SuppressWarnings("unchecked") protected void undeleteWorkspaceNode(WorkspaceNode nodeToUndelete, WorkspaceNode parent) { nodeToUndelete.setRemoved(false); nodeToUndelete.clearData(); // add in parent again parent.addChild(nodeToUndelete); nodeToUndelete.markAsResurrected(true); }
workspaceNode.addChild(peekInWorkspace);