@Override
	public boolean applyTo(Program program, TaskMonitor monitor) {

		try {
			CodeUnit cu = action.plugin.getCodeUnit(context);
			if (cu instanceof Data) {
				return applyDataSettings((Data) cu);
			}

			if (context.hasSelection()) {
				msg = applyEquateOverRange(context.getSelection());
				return msg == null;
			}

			Instruction instruction = (Instruction) context.getCodeUnit();
			int opIndex = action.plugin.getOperandIndex(context);
			int subOpIndex = action.plugin.getSubOperandIndex(context);
			msg = applyEquate(instruction, opIndex, subOpIndex);
		}
		catch (Exception e) {
			msg = "Exception applying the Convert: " + e.getMessage();
		}

		return msg == null;
	}
Constructor for the command to convert scalars and data to the user chosen format. The
command will work at a single address or over a selection in the case where the current
location refers to an instruction.  
<br>
Data convert only supports signed/unsigned and defined FormatSettingsDefinitions
on data whose data type is based upon the AbstractIntegerDataType.

@param action The action to pull information from
@param context The action context
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/equate/ConvertCommand.java