开发者

HOW TO USE THE CLASS OF "openPerspectiveMenu" IN A CLASS?

I want to develope plug-ins in eclipse,the function of the plug-ins is when right-click menu the button opens a perspectiv开发者_如何学编程e.I find the class which is "openPerspectiveMenu" has not been used,please tell me the alternative. thank you!


The way to open a perspective programmatically is to call:

IWorkbench.showPerspective(String perspectiveId,
                               IWorkbenchWindow window)
                               throws WorkbenchException

Javadoc here.

See http://wiki.eclipse.org/FAQ_How_do_I_show_a_given_perspective%3F for details.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜