@Override
	protected void actionPerformed(ListingActionContext context) {
		DataType dataType = getDataType(context);
		if (dataType != null) {
			plugin.createData(dataType, context, false, true);
		}
	}
An action that allows the user to change or select a data type.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/data/ChooseDataTypeAction.java