void setCommentType(CommentType type) {
		if (type == null) {
			tab.setSelectedIndex(0);
			return;
		}
		switch (type) {
			case CommentType.EOL:
				tab.setSelectedIndex(0);
				break;
			case CommentType.PRE:
				tab.setSelectedIndex(1);
				break;
			case CommentType.POST:
				tab.setSelectedIndex(2);
				break;
			case CommentType.PLATE:
				tab.setSelectedIndex(3);
				break;
			case CommentType.REPEATABLE:
				tab.setSelectedIndex(4);
				break;
			default:
				throw new AssertException("Unsupported comment type: " + type.name());
		}
	}
Display this dialog.
@param cu code unit
@param type comment type
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/comments/CommentsDialog.java