Bug 29437 - Editor Layout Not Persisted Properly
Summary: Editor Layout Not Persisted Properly
Status: RESOLVED DUPLICATE of bug 25853
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0.2   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-14 08:41 EST by Linda Sabourin CLA
Modified: 2003-01-14 09:00 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Linda Sabourin CLA 2003-01-14 08:41:54 EST
If the editor area is split vertically and Eclipse is exited with files left 
open, then when Eclipse is restarted, the layout of those files changes. The 
following scenario illustrates the problem.

1. Create a simple project with 4 text files: LowerLeft.txt, LowerRight.txt, 
UpperLeft.txt and UpperRight.txt. Close all files (editors).
2. Reopen the files in the alphabetical order: LowerLeft, LowerRight, 
UpperLeft, UpperRight.
3. Select the UpperLeft.txt tab and move it upwards until the up arrow appears. 
This should split the editor area in two. Select and drag the editor tab for 
UpperRight.txt and drop it beside the UpperLeft editor tab.

With all four editors open, exit Eclipse. 

The file .metadata/.plugins/org.eclipse.ui/workbench.xml, should contain 
similar XML data as below (workbook IDs may differ). Two workbooks are defined 
and then the four open editors. The editors are assigned to the workbooks 
properly, assuming the first workbook corresponds to the upper editor area. 
However, when eclipse is restarted, the editors are position with LowerLeft and 
UpperRight in the top area and LowerRight and UpperLeft in the bottom area. 

<editors>
  <editorArea activeWorkbook="org.eclipse.ui.internal.EditorWorkbook@26840aab">
    <info part="org.eclipse.ui.internal.EditorWorkbook@26840aab"/>
    <info part="org.eclipse.ui.internal.EditorWorkbook@1d314315" 
          ratio="0.5" relationship="4" 
relative="org.eclipse.ui.internal.EditorWorkbook@26840aab"/>
  </editorArea>
  <editor id="org.eclipse.ui.DefaultTextEditor" name="LowerLeft.txt" 
          path="/junk/LowerLeft.txt" title="LowerLeft.txt" 
tooltip="junk/LowerLeft.txt" 
          workbook="org.eclipse.ui.internal.EditorWorkbook@1d314315">
          <input factoryID="org.eclipse.ui.part.FileEditorInputFactory" 
path="/junk/LowerLeft.txt"/>
  </editor>
  <editor focus="true" id="org.eclipse.ui.DefaultTextEditor" 
name="LowerRight.txt" 
          path="/junk/LowerRight.txt" title="LowerRight.txt" 
tooltip="junk/LowerRight.txt" 
          workbook="org.eclipse.ui.internal.EditorWorkbook@1d314315">
          <input factoryID="org.eclipse.ui.part.FileEditorInputFactory" 
path="/junk/LowerRight.txt"/>
  </editor>
  <editor id="org.eclipse.ui.DefaultTextEditor" name="UpperLeft.txt" 
          path="/junk/UpperLeft.txt" title="UpperLeft.txt" 
tooltip="junk/UpperLeft.txt" 
          workbook="org.eclipse.ui.internal.EditorWorkbook@26840aab">
          <input factoryID="org.eclipse.ui.part.FileEditorInputFactory" 
path="/junk/UpperLeft.txt"/>
  </editor>
  <editor activePart="true" focus="true" id="org.eclipse.ui.DefaultTextEditor" 
name="UpperRight.txt" 
          path="/junk/UpperRight.txt" title="UpperRight.txt" 
tooltip="junk/UpperRight.txt" 
          workbook="org.eclipse.ui.internal.EditorWorkbook@26840aab">
          <input factoryID="org.eclipse.ui.part.FileEditorInputFactory" 
path="/junk/UpperRight.txt"/>
  </editor>
</editors>
Comment 1 Sonia Dimitrov CLA 2003-01-14 09:00:14 EST

*** This bug has been marked as a duplicate of 25853 ***