|Setting the image of a viewreference programmatically [message #1008177]
||Mon, 11 February 2013 09:37
| Jürgen Weinberger
Registered: August 2012
I am relatively new to eclipse and currently working with eclipse 3.6.
I have a simple application with a partstack where all my views are shown. This views are of the same kind but show different datasets. Each view-status is indicated by the icon in the tab which can change dynamically also if the view is not currently shown/open. When the views are already created it's no problem to set the image with view.setTitleImage().
My Problem now starts when the user closes and reopens the app. I don't want to create all the views at start-up as this results in a bad loading time when a lot of views exist. Instead I would prefer that a view is only created when the user clicks on the tab in the stackpart (lazy loading).
To come to the point. How can i change the icon of a view when i only have the ViewReference and not a created corresponding view. Is this possible?
I can't imagine that this is very complicated but i couldn't find any hint on the web so I hope i get luckier here in the forum.
So thanks in advance and
best regards Weinma
Powered by FUDForum
. Page generated in 0.02169 seconds