public static void toggleCommentInheritance(Node currentNode, JoeTree tree, OutlineLayoutManager layout) {
		CompoundUndoablePropertyChange undoable = new CompoundUndoablePropertyChange(tree);
		
		JoeNodeList nodeList = tree.getSelectedNodes();
		for (int i = 0; i < nodeList.size(); i++) {
			toggleCommentInheritanceForSingleNode(nodeList.get(i), undoable);
		}
		
		if (!undoable.isEmpty()) {
			if (undoable.getPrimitiveCount() == 1) {
				undoable.setName("Toggle Comment Inheritance for Node");
			} else {
				undoable.setName(new StringBuffer().append("Toggle Comment Inheritance for ").append(undoable.getPrimitiveCount()).append(" Nodes").toString());
			}
			tree.getDocument().getUndoQueue().add(undoable);
		}

		layout.draw(currentNode, OutlineLayoutManager.ICON);
	}