[HiDPI icons] How to migrate from ImageDescriptor#createFromFile to #createFromURL? [message #1740762] |
Thu, 18 August 2016 06:41  |
Eclipse User |
|
|
|
Hi,
I want to make use of the HiDPI icon support added in Neon. Now, my code creates ImageDescriptors using ImageDescriptor#createFromFile(Class, URL) rather than ImageDescriptor#createFromURL(URL). Unfortunately, the former method does not search for available HiDPI icons; only the latter does (as documented in the Neon release notes).
Hence, I have to migrate from createFromFile(Class, URL) to createFromURL(URL), but am at a loss as to how to convert my Class + URL to an absolute URL of the form bundleentry://.../path apprently required by ImageDescriptor#createFromURL(URL).
Any pointers on how to do this migration are hence greatly appreciated.
Andreas
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03865 seconds