Community
Participate
Working Groups
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>
*** This bug has been marked as a duplicate of 25853 ***