Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » how to initialize image registry in pure Eclipse 4(Migrating from eclipse 3.7 to pure eclipse 4(kepler).)
how to initialize image registry in pure Eclipse 4 [message #1174682] Thu, 07 November 2013 08:54 Go to next message
Kanchan Thukral is currently offline Kanchan Thukral
Messages: 5
Registered: November 2013
Location: India
Junior Member
I'm Migrating from eclipse 3.7 to pure Eclipse 4(kepler).
I refered ECF2013_MigrationE3toE4.pdf document

It is mentioning that:

"UI Activators in E3 extends AbstractUIPlugin (E3 workbench).
This inheritance must be removed but the Activator has no access to injection contexts
These initializations should be moved into an Addon :
➢ ImageRegistry initialization
➢ PreferenceStore management

My question is how to initialize ImageRegistry from addon?
Re: how to initialize image registry in pure Eclipse 4 [message #1194976 is a reply to message #1174682] Mon, 18 November 2013 19:50 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas Helming
Messages: 435
Registered: July 2009
Senior Member
Use the default JFace Image Registry.

Am 07.11.2013 10:00, schrieb Kanchan Thukral:
> I'm Migrating from eclipse 3.7 to pure Eclipse 4(kepler).
> I refered ECF2013_MigrationE3toE4.pdf document
>
> It is mentioning that:
>
> "UI Activators in E3 extends AbstractUIPlugin (E3 workbench).
> This inheritance must be removed but the Activator has no access to
> injection contexts
> These initializations should be moved into an Addon :
> ➢ ImageRegistry initialization
> ➢ PreferenceStore management
>
> My question is how to initialize ImageRegistry from addon?
Re: how to initialize image registry in pure Eclipse 4 [message #1199571 is a reply to message #1174682] Wed, 20 November 2013 22:40 Go to previous message
Olivier Prouvost is currently offline Olivier Prouvost
Messages: 7
Registered: August 2011
Location: TOULOUSE
Junior Member

Hi,

You can get a sample here :

github.com/opcoach/training/blob/master/e4/com.opcoach.training.e4.rental.ui/src/com/opcoach/training/e4/rental/ui/RentalAddon.java

Olivier

Sorry : my account does not allow me to put direct url !!

[Updated on: Wed, 20 November 2013 22:42]

Report message to a moderator

Previous Topic:InjectionException caused by null argument
Next Topic:Unable to resolve plug-in: "platform:/plugin/DependencyPlugin/resource/images/tooltip_24.png&qu
Goto Forum:
  


Current Time: Thu Oct 02 06:25:31 GMT 2014

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

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