Bug 307129 Window context never disposed
1) Run Window->Open Window in legacy IDE -> A context is created for the new window 2) Close the new window -> The context is not disposed
bundles/org.eclipse.e4.ui.workbench.addons.swt/src/org/eclipse/e4/ui/workbench/addons/cleanupaddon/CleanupAddon.java
if (UIEvents.EventTypes.REMOVE.equals(eventType)) {
				final MElementContainer<MUIElement> container = (MElementContainer<MUIElement>) changedObj;
				Display display = Display.getCurrent();
				
				if (display != null) {
					Display.getCurrent().asyncExec(new Runnable() {
						public void run() {
							if (container.getChildren().size() == 0
									&& !container.getTags().contains("EditorStack")) { 
								System.out.println("Remove: " + container.toString()); 
								container.setToBeRendered(false);
								container.getParent().getChildren().remove(container);
							}
						}
					});
				}
			}
		}
	};
	@PostConstruct
	void init(IEclipseContext context) {
		eventBroker.subscribe(UIEvents.buildTopic(UIEvents.ElementContainer.TOPIC,
				UIEvents.ElementContainer.CHILDREN), childrenHandler);
	}
	@PreDestroy
	void removeListeners() {
		eventBroker.unsubscribe(childrenHandler);
	}
}