@Override
	public boolean applyTo(Program p, TaskMonitor monitor) {
		this.program = p;

		monitor.setIndeterminate(true);
		monitor.setMessage("Installing Equate");

		equateTable = program.getEquateTable();
		try {
			applyEnum(monitor);
		}
		catch (CancelledException e) {
			return false;
		}
		return true;
	}
Constructor

@param program The program to use
@param addresses The addresses to apply an enum to
@param enoom The enum to apply equates with
@param shouldDoOnSubOps true if the enum should also be applied to the sub-operands.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/equate/CreateEnumEquateCommand.java