eclipse 打开多页编辑器中的某一页

来源:互联网 发布:javascript菜鸟 编辑:程序博客网 时间:2024/04/28 23:16
//获得当前活动的编辑器
 IEditorPart editor = (IEditorPart)PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
//将当前的编辑器强转为自己的编辑器 
FormVisualEditor vEditor = (FormVisualEditor)editor ;
//设置切换的编辑器tab页 
vEditor.setActivePage(1);
0 0
原创粉丝点击