How to close a ViewPart in Eclipse?

前端 未结 6 1375
时光取名叫无心
时光取名叫无心 2020-12-10 05:52

I have a view in Eclipse (implemented by a class which extends org.eclipse.ui.part.ViewPart) which I need to close. I mean completely close, not just hide. I wa

6条回答
  •  执笔经年
    2020-12-10 06:10

    I found the problem eventually. If the view is open on more than one perspective, hiding it on one perspective will not close it. It is possible to iterate over all the open perspective and look for the view. Hiding it on all perspectives will close it.

提交回复
热议问题