@Override
	public void okCallback() {
		RegisterValue newValue = new RegisterValue(programContext.getBaseContextRegister());
		for (int i = 0; i < fields.length; i++) {
			BigInteger value = fields[i].getValue();
			if (value != null) {
				newValue = setRegisterValue(newValue, registerList.get(i), value);
			}
		}
		programContext.setDefaultDisassemblyContext(newValue);
		close();
	}
The callback method for when the "OK" button is pressed.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/disassembler/ProcessorStateDialog.java