public Icon getIcon(final Dimension dim) {
// backup: if no icon is given try to use the icon of the plug-in
if (data.getIconURI() == null) {
IPluginData pdata = SimSystem.getRegistry().getPlugin(data);
if (pdata != null) {
if (pdata.getId().getIconURI() != null) {
return getIcon(dim, pdata.getId().getIconURI());
}
// backup: if no icon is given try to use the icon of the plug-in type
IPluginTypeData ptdata = SimSystem.getRegistry().getPluginType(pdata);
if (ptdata != null) {