private void saveToolConfig() {
		if (iconURL == null) {
			String iconName = iconField.getText();
			if (iconName.length() > 0) {
				iconURL = new ToolIconURL(iconName);
			}
		}
		if (iconURL != null) {
			tool.setIconURL(iconURL);
			IconMap.put(iconURL.getLocation(), iconURL);
		}
		toolServices.saveTool(tool);
	}
Set the icon and the description on the tool and call the method
in ToolServices to save the tool.
Ghidra/Framework/Project/src/main/java/ghidra/framework/plugintool/dialog/SaveToolConfigDialog.java