Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » (no subject)
(no subject) [message #699073] Wed, 20 July 2011 18:51 Go to next message
Eclipse UserFriend
Originally posted by: Thorsten Arendt

Hi,

I am using dynamic parts via a PartDesriptor and an injected
EPartService which inserts a new part to a PartStack by

partService.showPart(partService.createPart("somepartdescriptor"),
PartState.VISIBLE).

Unfortunately, when I close the main window and relaunch the application
I get a NullPointer since the content of each dynamic part is set by the
active selection of another part in the sash.

My question is: How can I tear down / destroy the dynamic parts when
closing the main window in order to get an empty PartStack at every
system launch?

Thorsten
(no subject) [message #714634 is a reply to message #699073] Thu, 11 August 2011 06:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Thorsten Arendt

no ideas???


On 20.07.2011 20:51, Thorsten Arendt wrote:
> Hi,
>
> I am using dynamic parts via a PartDesriptor and an injected
> EPartService which inserts a new part to a PartStack by
>
> partService.showPart(partService.createPart("somepartdescriptor"),
> PartState.VISIBLE).
>
> Unfortunately, when I close the main window and relaunch the application
> I get a NullPointer since the content of each dynamic part is set by the
> active selection of another part in the sash.
>
> My question is: How can I tear down / destroy the dynamic parts when
> closing the main window in order to get an empty PartStack at every
> system launch?
>
> Thorsten
Re: (no subject) [message #715170 is a reply to message #714634] Fri, 12 August 2011 15:28 Go to previous messageGo to next message
Ben Roling is currently offline Ben RolingFriend
Messages: 3
Registered: August 2011
Junior Member
I think Tom's E4 tutorial [1] might give you an idea. Search for LifecycleHandler in the tutorial.

[1] http_//tomsondev.bestsolution.at/2010/07/28/eclipse-4-0-and-tutorial-on-writing-e4-rcp-application-released/
Re: (no subject) [message #715387 is a reply to message #715170] Sat, 13 August 2011 17:48 Go to previous message
Eclipse UserFriend
Originally posted by: Thorsten Arendt

Hi Ben,

Thank You very much!
This exactly solves my problem...

Thorsten



On 12.08.2011 17:28, Ben Roling wrote:
> I think Tom's E4 tutorial [1] might give you an idea. Search for
> LifecycleHandler in the tutorial.
>
> [1]
> http_//tomsondev.bestsolution.at/2010/07/28/eclipse-4-0-and-tutorial-on-writing-e4-rcp-application-released/
>
Previous Topic:InteractiveSplash screen not load
Next Topic:e4 RCP : Window Image doesn't work
Goto Forum:
  


Current Time: Wed Apr 24 16:35:06 GMT 2024

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

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

Back to the top