Closing (not hiding) a part [message #1063860] |
Fri, 14 June 2013 10:38  |
Eclipse User |
|
|
|
Hello!
I've just started rcp application development, and am a bit confused about the behaviour of closeable parts:
In my application, a button adds a new part for each press (for visualizing data with different parameters). Now, if I press the close button (the parts are closeable), I can see in the live editor (alt+shift+f9) that instead of closing, they only get hidden (not rendered to be exact and the connected POJO stays alive as well)
So my question is: is there a way to actually close a part? (or handle the close event, in which case I could manually remove it from the application model)
Thanks:
Balint
|
|
|
Re: Closing (not hiding) a part [message #1063931 is a reply to message #1063860] |
Sun, 16 June 2013 03:08  |
Eclipse User |
|
|
|
Are you sure that the the pojo is still in place? I think on the model
element is kept alive by default. The reason is that if you reopen the
part it should occur at the same position.
To make the model element go away one has to tag the part with
"removeOnHide".
Tom
On 14.06.13 16:43, Balint Pamer wrote:
> Hello!
>
> I've just started rcp application development, and am a bit confused
> about the behaviour of closeable parts:
>
> In my application, a button adds a new part for each press (for
> visualizing data with different parameters). Now, if I press the close
> button (the parts are closeable), I can see in the live editor
> (alt+shift+f9) that instead of closing, they only get hidden (not
> rendered to be exact and the connected POJO stays alive as well)
>
> So my question is: is there a way to actually close a part? (or handle
> the close event, in which case I could manually remove it from the
> application model)
>
> Thanks:
> Balint
|
|
|
Powered by
FUDForum. Page generated in 0.02906 seconds