Using favicons as title image for MPart in a Stack [message #857589] |
Thu, 26 April 2012 13:28  |
Eclipse User |
|
|
|
I am working on an application that has several parts that are basically just browsers that will display a specific web site. For these parts I am wanting to use the favicon of the web site as the title icon for the part. I could just use the address of the favicon as the icon URI when creating the part, but don't want the run the risk of the UI thread blocking when trying to load these images at runtime.
In 3.x, this is accomplished by originally setting the title image of the view to a default resource and loading the favicon resource in a separate job. When the job completed (if a favicon existed) the title image was then reset to the loaded image.
I'd like to do something similar now that we've uplifted to e4 but am unsure on how to best accomplish this. I've been looking at loading the fav icons in a thread and then creating my own ISWTResourceUtilities implementation to check for these preloaded ImageDescriptors before trying to create a new one, but this seems to be an overly complex way of accomplishing what I want.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02680 seconds