Bug 22722 - [Editor Mgmt] Editor references not returned in tab order
Summary: [Editor Mgmt] Editor references not returned in tab order
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: Other All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Michael Van Meekeren CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-22 11:44 EDT by Jared Burns CLA
Modified: 2004-05-18 11:07 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jared Burns CLA 2002-08-22 11:44:22 EDT
It would be nice if WorkbenchPage#getEditorReferences() returned the editor 
references in the order they're tabs are displayed.

For example, if you launch the workbench with editors A, B, and C open in 
that order, WorkbenchPage#getEditorReferences() returns them in that order. 
If the user then reorders the editor tabs to be B, C, A, 
getEditorReferences() still returns the editors in the order A, B, C.

Background:
I'd like this for is the editor management view in Bug 10941. I have users 
who reorder the editor tabs by logical groupings. When they reorder the 
tabs, they'd like them to show up in the same order in the editor view. I 
haven't found any notification that's sent when the tabs are reordered 
(which would be optimal), but if the call to getEditorReferences() returned 
them in the tab order, I could simply allow the user to refresh the view 
contents to update the ordering.
Comment 1 Michael Van Meekeren CLA 2004-05-18 11:07:11 EDT
In R3.0 the code that does the presentation for editors and views can answer 
the state they should be persisted in.