@Override
public void performRequest(Request req) {
// System.out.println(req.getType());
if("open".equals(req.getType())){
try {
//打开视图
IWorkbench workbench = PlatformUI.getWorkbench();
IWorkbenchWindow window = workbench.getActiveWorkbenchWindow();
IWorkbenchPage page = window.getActivePage();
IEditorPart editorpart = page.getActiveEditor();
window.getActivePage().showView(AcrossView.ID);
//打开编辑器
// IEditorInput input = new NodeStatusEditorInput();
//
// IWorkbenchWindow window = workbench.getActiveWorkbenchWindow();
//
// IWorkbenchPage page = window.getActivePage();
//
// page.openEditor(input, NodeStatusEditor.ID,true);
} catch (PartInitException e) {
e.printStackTrace();
}
}
super.performRequest(req);
}
IFigure双击事件
最新推荐文章于 2018-05-31 20:22:00 发布