开发者

hide perspectives

I created one perspective in eclipse workbench, not in eclipse rcp.Is it possible to hide other perspectives like java,debug? I just want to show only开发者_Go百科 my perspective in my application.That should be the default one.Or I dont need to show any perspectives but my perspective which I created should be the default one. How do I do?


You can use activities.

I also wrote a blog entry on this some years back: Using activities for user management.

UPDATED the link


You can close wanted perspective like below:

IPerspectiveDescriptor[] openPerspectives = page.getOpenPerspectives();
for (IPerspectiveDescriptor openPerspective : openPerspectives) {
//add your own perspective name
  if (openPerspective.getLabel().equals("<perspectiveLabel>")) {
    page.closePerspective(openPerspective, false, false);
  }
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜