private SetEquateDialog createEquateDialog(ListingActionContext context, Scalar scalar) {

		InitializeDialogTask task = new InitializeDialogTask(context.getProgram(), scalar);
		TaskLauncher.launch(task);

		SetEquateDialog dialog = task.getDialog();
		dialog.setHelpLocation(new HelpLocation(getName(), "Set_Equate"));
		return dialog;
	}
Class to handle setting, removing, and renaming equates in a program.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/equate/EquatePlugin.java