This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
org.netbeans.spi.viewmodel.NodeModel simply has a getIconBase. If I return an icon base, this will not resolve to a .png, only a gif.
Well, this is a problem. It uses old deprecated API: org.openide.nodes.AbstractNode.setIconBase(). It should delegate to org.openide.nodes.AbstractNode.setIconBaseWithExtension() instead. But, NodeModel is an interface and we can not simply add a new method getIconBaseWithExtension(). I do not see any other solution than introduce a new interface with getIconBaseWithExtension() method. Though it's ugly.
There is a simple, but ugly workaround - rename icon.png to icon.gif It will work fine, though it's not nice.
This is fixed now, after ExtendedNodeModel was committed to trunk. See issue #104281. If you NodeModel would implement ExtendedNodeModel, you can use getIconBaseWithExtension() method to return the full name of the icon, including whatever extension you need.
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.