[SOLVED] RCP: Part stack is removed when last part was closed [message #1413393] |
Thu, 28 August 2014 12:29 |
Ulrich Mertin 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 |
Marina Knieling 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
|
|
|
|
Powered by
FUDForum. Page generated in 0.03210 seconds