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.
精彩评论