Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to get editor order
How to get editor order [message #484691] Tue, 08 September 2009 18:18 Go to next message
Dave is currently offline DaveFriend
Messages: 28
Registered: July 2009
Junior Member
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 13:30 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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


Previous Topic:Build RCP product/plugin with command line
Next Topic:Which native libraries for RCP application?
Goto Forum:
  


Current Time: Mon Jan 13 21:42:40 GMT 2025

Powered by FUDForum. Page generated in 0.03099 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top