Project: Eclipse_Platform_UI
Bug 50115 [New Look] Eclipse dies when two editors are stacked
Reported: 2004-01-15 21:18:54 | Status: resolved fixed

To reproduce: - Open two editors. - Drag them side-by-side. - Drag them back on top of one another. All SWT widgets end up hidden or in the wrong place. Eclipse becomes completely unusable and needs to be closed. Here is the fix: In EditorPresentation.stack, find the following lines: stackEditor(newPart, dropTarget.getContainer()); newPart.setFocus(); ((EditorWorkbook) refPart).becomeActiveWorkbook(true); ((EditorWorkbook) refPart).setVisibleEditor((EditorPane) newPart); Change them to this: if (dropTarget instanceof ILayoutContainer) { stackEditor(newPart, (ILayoutContainer)dropTarget); newPart.setFocus(); ((EditorWorkbook) refPart).becomeActiveWorkbook(true); ((EditorWorkbook) refPart).setVisibleEditor((EditorPane) newPart); }

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorWorkbook.java