当前位置: 代码迷 >> Eclipse >> 在eclipse中取得当前所有打开的editor实例列表
  详细解决方案

在eclipse中取得当前所有打开的editor实例列表

热度:23   发布时间:2016-04-23 02:27:00.0
在eclipse中获得当前所有打开的editor实例列表


EditorPart[] parts =PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getEditors();


或者
IEditorReference[] parts = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getEditorReferences();


  相关解决方案