private void showDialogs() throws Exception {

		DockingActionIf action = getAction(tool, ToolConstants.TOOL_OWNER, "Save Tool As");
		performAction(action, false);
		waitForSwing();

		saveDialog = waitForDialogComponent(SaveToolConfigDialog.class);

		assertNotNull(saveDialog);
		toolNameField = (JTextField) findComponentByName(saveDialog, "ToolName");
		iconList = (JList<?>) findComponentByName(saveDialog, "IconList");
		iconNameField = (JTextField) findComponentByName(saveDialog, "IconName");
	}
Tests for saving the tool config.
Ghidra/Features/ByteViewer/src/test.slow/java/ghidra/framework/plugintool/dialog/SaveToolConfigDialogTest.java