Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Where is the Equivalent to applicationclass implementing IApplication
Where is the Equivalent to applicationclass implementing IApplication [message #896303] Tue, 17 July 2012 23:22 Go to next message
Markus Oley is currently offline Markus OleyFriend
Messages: 304
Registered: July 2009
Location: Germany
Senior Member
Hi to all,

I try to migrate my eclipse rcp to cool eclipse 4, because
styling is really cool.

I have a small question:

In old rcp-application I had a class which implements IApplication and in which
I could initialize things like my EMF-Model.
This class isn't called anymore.
Is there a different way to initialize things at startup?

Thanks for your help,

Best regards
Markus
Re: Where is the Equivalent to applicationclass implementing IApplication [message #896304 is a reply to message #896303] Tue, 17 July 2012 23:27 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Yes lifecycle hooks. e4 apps launch with E4Application as the
IApplication unless we are talking here about running your old RCP using
the compat layer.

Tom

Am 18.07.12 01:22, schrieb Markus Oley:
> Hi to all,
> I try to migrate my eclipse rcp to cool eclipse 4, because styling is
> really cool.
> I have a small question:
> In old rcp-application I had a class which implements IApplication and
> in which I could initialize things like my EMF-Model. This class isn't
> called anymore. Is there a different way to initialize things at startup?
>
> Thanks for your help,
>
> Best regards
> Markus
Re: Where is the Equivalent to applicationclass implementing IApplication [message #896553 is a reply to message #896304] Wed, 18 July 2012 20:16 Go to previous messageGo to next message
Markus Oley is currently offline Markus OleyFriend
Messages: 304
Registered: July 2009
Location: Germany
Senior Member
Hi Tom,

thanks for your help,

I have added a xml-element property

<property name="lifeCycleURI"
value="bundleclass://PLUGIN/FQN">
</property>

to my org.eclipse.core.runtime.products - extension point and
added a method with an annotation @PostContextCreate to be called at startup.

This works perfectly.

Best regards
Markus
Re: Where is the Equivalent to applicationclass implementing IApplication [message #896554 is a reply to message #896304] Wed, 18 July 2012 20:16 Go to previous message
Markus Oley is currently offline Markus OleyFriend
Messages: 304
Registered: July 2009
Location: Germany
Senior Member
Hi Tom,

thanks for your help,

I have added a xml-element property

<property name="lifeCycleURI"
value="bundleclass://PLUGIN/FQN">
</property>

to my org.eclipse.core.runtime.products - extension point and
added a method with an annotation @PostContextCreate to be called at startup.

This works perfectly.

Best regards
Markus
Previous Topic:PerspectiveSwitcher in a pure e4 app
Next Topic:E4 contexts and injection decouple.
Goto Forum:
  


Current Time: Thu Apr 25 04:30:31 GMT 2024

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

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

Back to the top