Hello,
Simon suggested the idea of providing zap-extensions a mechanism to set their own icons to the nodes of the Sites Tree tab without having to modify the ZAP code. ZAP already supports setting icons. However, you have to modify the ZAP code if you want your extension to set its icon.
HistoryReference is currently instantiated as follows: HistoryReference(Session session, int historyType, HttpMessage msg)
To set a specific icon, you have to call the following constructor: HistoryReference(Session session, String iconURL, HttpMessage msg, boolean clear)
Where iconURL is the path to the icon (i.e. /resource/icon/10/whatever.png) and the clear variable is used to decide whether the icon has to be removed when manually visiting the node or not. There is no historyType in the constructor because it is used a specific one that will be later used in the SiteNode class to determine if a specific icon has to be used.
The only limitations are that no specific historyType can be set but I did not see any situation where this could be needed. The other one is that only one icon can be set in each historyRef.
Does that make sense? Any comment will be appreciated.
Best regards.