Bug 283173 [Compatibility] Move the UI Editor into a separate window
The current placement of the UI Editor in the compatibility layer is causing some confusion (the Java perapective doesn't look right, the editor area is too small...). We should move this into the E4 equivalent of a Detached Window; an MWindow that is a child element of the main window. We'll also have to hook up a command to re-open the editor should it get closed (we can't simply re-open the view since the editor isn't contributed through the legacy mechanisms...).
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/workbench/ui/renderers/swt/WBPartFactory.java
if (ApplicationPackage.Literals.MITEM__ICON_URI.equals(msg
						.getFeature())) {
					Widget widget = (Widget) sm.getWidget();
					if (widget instanceof org.eclipse.swt.widgets.Item) {
						org.eclipse.swt.widgets.Item item = (org.eclipse.swt.widgets.Item) widget;
						Image image = getImage(sm);
						if (image != null)
							item.setImage(image);
					}
				}
			}
		});
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.eclipse.e4.workbench.ui.renderers.swt.SWTPartFactory#processContents
	 * (org.eclipse.e4.ui.model.application.MPart)
	 */
	@Override
	public <P extends MPart<?>> void processContents(MPart<P> me) {
		super.processContents(me);
		
		if (me.getMenu() != null) {
			createMenu(me, me.getWidget(), me.getMenu());
		}
	}
}