How to make an eclipse partstack not disappear when the last part is closed?

爱⌒轻易说出口 提交于 2020-01-11 06:24:14

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/18790760/how-to-make-an-eclipse-partstack-not-disappear-when-the-last-part-is-closed

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!