How to make an eclipse partstack not disappear whe

2019-02-18 20:40发布

I'm working on a project with a main window consisting of a mpartstack where I add parts dynamically from another part. The problem is that when the last part gets closed the mpartstack disappears and the other part takes up all the space. When I try to add new parts nothing happens.

I've tried fiddling around with the preDestroy function in the parts that are added to the stack by trying to add a new part. The preDestroy works occasionally but far from satisfactory.

I've looked far and wide to try to find any clue on what to do but I've found nothing except for some bug reports on the matter.

So: can a mpartstack be in a uncloseable state or is there any textbook way to intercept a part that is about to be closed?

Thanks in advance /K

标签: eclipse rcp e4
1条回答
成全新的幸福
2楼-- · 2019-02-18 21:13

Add the tag NoAutoCollapse to the MPartStack definition in the model.

查看更多
登录 后发表回答