Skip to main content


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 16:22 Go to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
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 19:24 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
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 07:52 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
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: Fri Apr 26 11:58:12 GMT 2024

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

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

Back to the top