Knowing if an editor is visible [message #334780] |
Fri, 27 February 2009 05:49  |
Eclipse User |
|
|
|
Hello,
How can I know, from all the opened editors, which one are visible to
the user? I mean visible as "we see the tab and the content" of the
editor. Most of the time there is only one editor visible, sometimes
more if you split your window into several editors.
I tried to iterate on each editor with:
getSite ().getPage ().getEditorReferences ()
and then we can get the IWorkbenchPart with editor.getEditorSite
().getPart ()
but can't find a way to know if it is visible or not.
I also tried to register a PartListener on the Page but can't we just
add a part listener only on the editor self?
|
|
|
|
Powered by
FUDForum. Page generated in 0.02584 seconds