How to get editor order [message #484691] |
Tue, 08 September 2009 14:18  |
Eclipse User |
|
|
|
Is there a way that I can find out the order in which editors appear in
the editor area? If the user opens editor A, and then editor B, the
editors appear in left to right order as A followed by B. The user can
then drag B to the left, so that the the editors appear in left to right
order as B followed by A. However, in my code, the
IWorkbenchPage.getEditorReferences() method always returns the editors in
the order in which they were originally opened, not in the order in which
they appear in the editor area.
Is there a way to find out the current visual order of open editors?
Regards,
Dave
|
|
|
Re: How to get editor order [message #484834 is a reply to message #484691] |
Wed, 09 September 2009 09:30  |
Eclipse User |
|
|
|
No, not really. The presentation/page maintains a kinda floating list. For example, when you shut down and restart the TabbedStackPresentation (and its components) write out order information into a local file, and on restart it creates the editor tabs based on the order in that file.
It's not API.
PW
|
|
|
Powered by
FUDForum. Page generated in 0.07075 seconds