public static void toggleEditableForSingleNode(Node node, CompoundUndoable undoable) {
		int oldValue = node.getEditableState();
		int newValue = Node.EDITABLE_INHERITED;
		boolean isEditable = node.isEditable();
		
		if (oldValue == Node.EDITABLE_FALSE) {
			node.setEditableState(Node.EDITABLE_TRUE);
			newValue = Node.EDITABLE_TRUE;
					
		} else if (oldValue == Node.EDITABLE_TRUE) {
			node.setEditableState(Node.EDITABLE_FALSE);
			newValue = Node.EDITABLE_FALSE;
		
		} else {
			if (isEditable) {
				node.setEditableState(Node.EDITABLE_FALSE);
				newValue = Node.EDITABLE_FALSE;
			} else {
				node.setEditableState(Node.EDITABLE_TRUE);
				newValue = Node.EDITABLE_TRUE;
			}
		}
				
		undoable.addPrimitive(new PrimitiveUndoableEditableChange(node, oldValue, newValue));
	}