Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » [SOLVED] RCP: Part stack is removed when last part was closed
[SOLVED] RCP: Part stack is removed when last part was closed [message #1413393] Thu, 28 August 2014 12:29 Go to next message
Ulrich Mertin is currently offline Ulrich MertinFriend
Messages: 7
Registered: August 2014
Junior Member
In my e4 RCP application I have defined a part stack, to which I programmaticaly add parts (editors) with the REMOVE_ON_HIDE_TAG tag set. When the last part is closed using the red X on the tab, Eclipse removes the the part stack, so that the next attempt to add a new part to it results in a null pointer error.

As a quick work around I have defined an invisible part below the part stack in the application model. This prevents the stack from being removed, but it still gets invisible, so that the layout changes and I have to set the stack visible whenever I add a part.

Is there a way to tell Eclipse to keep the part stack all the time and that it should stay visible, too?

Thanks
Ulrich

[Updated on: Thu, 28 August 2014 12:54]

Report message to a moderator

Re: RCP: Part stack is removed when last part was closed [message #1413395 is a reply to message #1413393] Thu, 28 August 2014 12:32 Go to previous messageGo to next message
Marina Knieling is currently offline Marina KnielingFriend
Messages: 83
Registered: February 2013
Member
Hi Ulrich,

try adding the tag NoAutoCollapse to your PartStack in the Application
Model. That should do the trick.

Cheers,
Marina

On 28.08.2014 14:29, Ulrich Mertin wrote:
> In my e4 RCP application I have defined a part stack, to which I
> programmaticaly add parts (editors) with the REMOVE_ON_HIDE_TAG tag set.
> When the last part is closed using the red X on the tab, Eclipse removes
> the the part stack, so that the next attempt to add a new part to it
> results in a null pointer error.
>
> As a quick work around I have defined an invisible part below the part
> stack in the application model. This prevents the stack from being
> removed, but it still gets invisible, so that the layout changes and I
> have to set the stack visible whenever I add a part.
> Is there a way to tell Eclipse to keep the part stack all the time and
> that it should stay visible, too?
>
> Thanks
> Ulrich
Re: RCP: Part stack is removed when last part was closed [message #1413405 is a reply to message #1413395] Thu, 28 August 2014 12:53 Go to previous message
Ulrich Mertin is currently offline Ulrich MertinFriend
Messages: 7
Registered: August 2014
Junior Member
Hi Marina,

works perfectly. Thanks!

Ulrich

Marina Knieling wrote on Thu, 28 August 2014 08:32
Hi Ulrich,

try adding the tag NoAutoCollapse to your PartStack in the Application
Model. That should do the trick.

Cheers,
Marina

Previous Topic:Menu shows only with -clearPersistedState
Next Topic:visibleWhen and core expressions
Goto Forum:
  


Current Time: Sun Jan 24 16:48:04 GMT 2021

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

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

Back to the top