Bug 320918 [Compatibility] cannot drag stack in second WorkbenchWindow
I started with a new workspace and dragged around my outline view. Then I opened a second window and attempted to place its outline view in a similar position. The second window won't allow dragging of any views/stacks. Remy mentioned: Widget widget = (Widget) event.getProperty(EventTags.NEW_VALUE); if (widget instanceof Shell) { if (dndMgr == null) { dndMgr = new DnDManager((MWindow) changedElement); } } PW
bundles/org.eclipse.e4.ui.workbench.addons.swt/src/org/eclipse/e4/ui/workbench/addons/dndaddon/DnDAddon.java
@Inject
	IEventBroker eventBroker;
	private DnDManager dndMgr = null;
	private EventHandler installHook = new EventHandler() {
		public void handleEvent(Event event) {
			MUIElement changedElement = (MUIElement) event.getProperty(EventTags.ELEMENT);
			if (!(changedElement instanceof MWindow))
				return;
			Widget widget = (Widget) event.getProperty(EventTags.NEW_VALUE);
			if (widget instanceof Shell) {
				if (dndMgr == null) {
					dndMgr = new DnDManager((MWindow) changedElement);
				}
			}
		}
	};
	@PostConstruct
	void hookListeners() {
		String topic = UIEvents.buildTopic(UIEvents.UIElement.TOPIC, UIEvents.UIElement.WIDGET);
		eventBroker.subscribe(topic, null, installHook, false);
	}
	@PreDestroy
	void unhookListeners() {
		eventBroker.unsubscribe(installHook);
	}
}