|cycle editors in display order (tab order) [message #526221]
||Fri, 09 April 2010 09:31
| Jason Stillwell
Registered: April 2010
I want to cycle through the open editors, in the order they are displayed on screen. I'm trying to mimic the behavior of tabs in vim with the 'gt' and 'gT' commands. That also means cycling from beginning to end of the tab list.|
ctrl-F6 (org.eclipse.ui.window.nextEditor) cycles through them in "activation order" which is not the same as display order. Also it opens a UI stack widget. Which stays open, oddly, when you call the internal command directly from a plugin, instead using a keymap.
I can easily mimic org.eclipse.ui.window.nextEditor by calling activePage.getEditorReferences(). But that too, is the activation order.
ctrl-pagedown/up cycles through the editors, but its an swt keymap, not an eclipse one. furthermore it stops when you hit the beginning/end of the tab list.
I think I can manually cycle, or at least get the visibl order of tabs, if i can get the CTabFolder from the IWorkbenchPage. but I can't find the API to link the 2 together.
See these for motivation:
* http://stackoverflow.com/questions/516704/enumerating-all-my -eclipse-editors
* http://dev.eclipse.org/newslists/news.eclipse.platform/msg72 043.html
And a plug for the eclipse plugin I'm trying to help out with.
Powered by FUDForum
. Page generated in 0.03956 seconds