Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Image Registry / Icons
Image Registry / Icons [message #1003212] Sun, 20 January 2013 11:22 Go to next message
Jonas Helming is currently offline Jonas Helming
Messages: 366
Registered: July 2009
Senior Member
Hi,
in 3.x I was used to use the image registry provided by AbstractUIPlugin
to retrieve Icons. As AbstractUIPlugin is in org.eclipse.ui it is not
available in a pure e4 application. Is there any substitute?
Cheers
Jonas
Re: Image Registry / Icons [message #1003252 is a reply to message #1003212] Sun, 20 January 2013 14:24 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5020
Registered: July 2009
Senior Member
Take a look at the ResourcePool stuff provided by e4.tools, it a lot
cooler because it does ref counting and disposes images when not
referenced any more!

Tom

Am 20.01.13 17:22, schrieb Jonas Helming:
> Hi,
> in 3.x I was used to use the image registry provided by AbstractUIPlugin
> to retrieve Icons. As AbstractUIPlugin is in org.eclipse.ui it is not
> available in a pure e4 application. Is there any substitute?
> Cheers
> Jonas
Re: Image Registry / Icons [message #1003421 is a reply to message #1003252] Mon, 21 January 2013 02:52 Go to previous message
Dirk Fauth is currently offline Dirk Fauth
Messages: 1067
Registered: July 2012
Senior Member
Hi,

I haven't looked at the ResourcePool stuff from Tom already (surely will do this soon), but as an alternative you could simply use

JFaceResources.getImageRegistry()


instead, which returns the JFace image registry itself. I use this with a LocalResourceManager and never faced any issues and don't have any dependencies to AbstractUIPlugin.

Greez,
Dirk
Previous Topic:How to find MPart for currently open editor
Next Topic:DI : Define custom parent Composite for inject
Goto Forum:
  


Current Time: Thu Apr 24 15:01:23 EDT 2014

Powered by FUDForum. Page generated in 0.04387 seconds