Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How get a list of all open files in Eclipse editors?

In my RCP application is editor, almost like in Eclipse. Class editor extends from org.eclipse.ui.texteditor.AbstractTextEditor and it is added in extension in plugin.xml -> org.eclipse.ui.editors. I would like to do view which contains open in editor files. The question is, how do I get a list of all open files?

Screen shot:

enter image description here

like image 466
tostao Avatar asked Jul 24 '12 11:07

tostao


People also ask

How do I open a file list in Eclipse?

You can use Ctrl + F6 to bring this up on older versions of Eclipse.

How do I show all tabs in Eclipse?

ctrl+shift+e gives a nice dialog with all open windows.


1 Answers

I haven't tested it, but you should be able to get it starting from the PlatformUI class.

PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getEditorReferences()
like image 187
Nick Wilson Avatar answered Oct 29 '22 17:10

Nick Wilson