public static void demoteText(Node currentNode, JoeTree tree, OutlineLayoutManager layout) {
		if (currentNode.isFirstChild()) {
			return;
		}

		// Abort if node is not moveable
		if (!currentNode.isMoveable()) {
			return;
		}
		
		// Put the Undoable onto the UndoQueue
		Node targetNode = currentNode.prevSibling();

		CompoundUndoableMove undoable = new CompoundUndoableMove(currentNode.getParent(), targetNode);
		undoable.setName("Demote Node");
		tree.getDocument().getUndoQueue().add(undoable);
		
		// Record the Insert in the undoable
		int index = currentNode.currentIndex();
		int targetIndex = targetNode.numOfChildren();
		undoable.addPrimitive(new PrimitiveUndoableMove(undoable,currentNode,index,targetIndex));

		tree.demoteNode(currentNode,targetNode, index);

		// Redraw and Set Focus
		layout.draw(currentNode,OutlineLayoutManager.TEXT);
	}