Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Read icon from plugin
Read icon from plugin [message #163199] Fri, 28 November 2003 04:51
Eclipse UserFriend
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---
Previous Topic:How can I do something on file save?
Next Topic:Eclipse Installation Problem on Win-2000
Goto Forum:
  


Current Time: Thu Jul 17 19:34:22 EDT 2025

Powered by FUDForum. Page generated in 0.03659 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top