public final void set(GhidraState state, ScriptControls controls) {
		this.state = state;
		loadVariablesFromState();

		this.writer = controls.getWriter();
		this.errorWriter = controls.getErrorWriter();
		this.decorateOutput = controls.shouldDecorateOutput();
		this.monitor = controls.getMonitor();
	}
Set the state and controls for this script.

@param state the new state
@param controls new the controls
Ghidra/Features/Base/src/main/java/ghidra/app/script/GhidraScript.java