private void setTool(Tool tool) {

		if (this.tool != null) {
			return;
		}

		// initialize the first time we are shown
		this.tool = tool;

		if (tool == null) {
			// The tool can be null for dialogs shown before the framework is initialized, like 
			// dialogs shown over the splash screen.  Without a tool, we cannot add key binding
			// actions.
			return;
		}

		// Any actions in this list already were added before we had a tool.  Add them now.  Any
		// future calls to addKeyBindingAction() will get added to the tool at that time.
		for (DockingActionIf proxy : keyBindingProxyActions) {
			tool.addAction(proxy);
		}
	}
Called each time the dialog is show.  The given tool is the parent tool of the dialog.
@param t the tool
Ghidra/Framework/Docking/src/main/java/docking/DialogComponentProvider.java