Bug 309447 Possibility to take out editor as standalone shell
Build Identifier: M20100211-1343 I would like to have possiblity to drag editor outside workbench and to have standalone editor (similar to firefox or chrome tab behaviour). Reproducible: Always
bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/ModelServiceImpl.java
while (eObj != null && !(eObj.eContainer() instanceof MApplication))
			eObj = (EObject) eObj.eContainer();
		if (eObj instanceof MWindow)
			return (MWindow) eObj;
		return null; 
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.eclipse.e4.ui.workbench.modeling.EModelService#getPerspectiveFor(org.eclipse.e4.ui.model
	 * .application.ui.MUIElement)
	 */
	public MPerspective getPerspectiveFor(MUIElement element) {
		while (true) {
			
			MPlaceholder placeholder = element.getCurSharedRef();
			if (placeholder != null) {
				element = placeholder;
			}
			EObject container = ((EObject) element).eContainer();
			if (container == null || container instanceof MApplication) {
				
				return null;
			} else if (container instanceof MPerspectiveStack) {
				
				return (MPerspective) element;
			}
			
			element = (MUIElement) container;