Read icon from plugin [message #163199] |
Fri, 28 November 2003 04:51 |
Eclipse User |
|
|
|
Originally posted by: dirk.segelhorst[NO_SPAM].vector-consulting.de
Hi,
how can I read the icon which is specified at the extension point (e.g.
org.eclipse.ui.views) in plugin.xml of a view when this view is _not_ shown
at the moment? The snippet below shows how to access that image if the view
is shown. Any ideas?
Thanks,
Dirk.
---snippet---
final IWorkbenchPart workbenchPart = this;
final IWorkbenchPartSite workbenchPartSite = workbenchPart.getSite();
final IWorkbenchPage workbenchPage = workbenchPartSite.getPage();
Image img =
workbenchPage.findView(element.getAttributeValue("ViewID")).getTitleImage();
---snippet---
|
|
|
Powered by
FUDForum. Page generated in 0.03659 seconds