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:
You can use Ctrl + F6 to bring this up on older versions of Eclipse.
ctrl+shift+e gives a nice dialog with all open windows.
I haven't tested it, but you should be able to get it starting from the PlatformUI class.
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getEditorReferences()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With