Skip to main content


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 14:38 Go to next message
Balint Pamer is currently offline Balint PamerFriend
Messages: 3
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 07:08 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
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: Fri Apr 19 23:52:30 GMT 2024

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

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

Back to the top