Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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: Wed Mar 26 07:33:45 EDT 2025

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

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

Back to the top