@Override
	public ActionContext getActionContext(MouseEvent event) {
		if (treePanel == null) {
			// must have been closed; some kind of timing issue
			return super.getActionContext(event);
		}

		ActionContext actionContext = treePanel.getActionContext(null, event);
		if (actionContext instanceof DialogActionContext dac) {
			dac.setDialogComponentProvider(this);
		}
		return actionContext;
	}
Add action listener that is called when the OK button is hit.
@param l listener to add
Ghidra/Features/Base/src/main/java/ghidra/framework/main/AbstractDataTreeDialog.java