Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Closing (not hiding) a part
Closing (not hiding) a part [message #1063860] Fri, 14 June 2013 10:38 Go to next message
Balint Pamer is currently offline Balint Pamer
Messages: 2
Registered: June 2013
Junior Member
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 Go to previous message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5296
Registered: July 2009
Senior Member
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
Previous Topic:Scrolling the form with tableviewer
Next Topic:Problem with MessageConsole and new line
Goto Forum:
  


Current Time: Sat Aug 30 00:43:03 EDT 2014

Powered by FUDForum. Page generated in 0.01591 seconds