public static void freezeUndoEdit(Node currentNode) {
		UndoableEdit undoable = currentNode.getTree().getDocument().getUndoQueue().getIfEdit();
		if ((undoable != null) && (undoable.getNode() == currentNode)) {
			undoable.setFrozen(true);
		}
	}