public TreeNode[] getSelected() {
		Set s = new HashSet(selectedNodes.keySet());
		Iterator it = s.iterator();
		while (it.hasNext()) {
			TreeNode n = (TreeNode) it.next();
			if (n.getParent() == null && n != getModel().getRoot())
				selectedNodes.remove(n);
		}
		return (TreeNode[]) selectedNodes.keySet().toArray(new TreeNode[0]);
	}