开发者

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

开发者 https://www.devze.com 2023-04-04 18:29 出处:网络
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 b

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

精彩评论

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