Bug 319961 Reset perspective fails with parts moved into the editor area
1. Start a fresh e4 workbench 2. Move the Javadoc view into the editor area 3. Reset the perspective 4. Open the Javadoc view Result: The Javadoc view is opened in the editor area. In the bottom stack there still is a tab for the Javadoc view; this tab can be clicked, but it will activate the view in the editor area. The toolbar, however, is shown in the bottom stack.
bundles/org.eclipse.e4.ui.workbench.addons.swt/src/org/eclipse/e4/ui/workbench/addons/dndaddon/DnDManager.java
}
				}
			}
		}
	};
	private EModelService modelService;
	private MWindow baseWindow;
	private Shell baseShell;
	public DnDManager(MWindow window) {
		baseWindow = window;
		dragAgents.add(new PartDragAgent());
		dropAgents.add(new StackDropAgent());
		modelService = (EModelService) window.getContext().get(EModelService.class.getName());
		dropAgents.add(new SplitDropAgent(modelService));
		dropAgents.add(new DetachedDropAgent(modelService));
		if (baseWindow.getWidget() instanceof Shell) {
			baseShell = (Shell) baseWindow.getWidget();
			display = baseShell.getDisplay();
			setDisplayFilters(true);
			dndUtil = new DragAndDropUtil(window);
			modelService = (EModelService) baseWindow.getContext().get(
					EModelService.class.getName());
			baseShell.addDisposeListener(new DisposeListener() {
				public void widgetDisposed(DisposeEvent e) {
					if (!display.isDisposed()) {
						setDisplayFilters(false);
					}
				}
			});
		}