|ISharedImages.IMG_DEC_FIELD_* not registered in 4.2 [message #891926]
||Tue, 26 June 2012 15:27
| Marcelo Paternostro
Registered: June 2012
One of the use cases of the product we are developing was not working properly on 4.2 and I was asked to try to understand what was happening. It was not to difficult to nail down the problems: the images ISharedImages.IMG_DEC_FIELD_ERROR and ISharedImages.IMG_DEC_FIELD_WARNING are not being declared in 4.2 thus ISharedImages.getImage(String) and ISharedImages.getImageDescriptor(String) return null. In 3.x these images are, coincidently, the first two to be registered at org.eclipse.ui.internal.WorkbenchImages.declareImages().
Was this an intentional change? It seems to be something that causes more harm than good but, if this is not a mistake, I will assume someone has put some though into it. However, in that case, I would suggest (1) removing the image which is still available via its URL and, way more important, (2) PLEASE deprecate the constants in ISharedImages: at least this would turn such a runtime-behaviour change into something we can detect at development time.
Btw, I obviously don't mind opening a bug to track this but thought it would be good to discuss it here first.
Powered by FUDForum
. Page generated in 0.03164 seconds