(no subject) [message #699073] |
Wed, 20 July 2011 18:51 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 #715387 is a reply to message #715170] |
Sat, 13 August 2011 17:48 |
Eclipse User |
|
|
|
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/
>
|
|
|
Powered by
FUDForum. Page generated in 0.03944 seconds