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
*/
	public void removeLocalPlaceholders(MWindow window, MPerspective perspective) {
		List<MPlaceholder> globals = findElements(window, null, MPlaceholder.class, null,
				OUTSIDE_PERSPECTIVE | IN_SHARED_AREA);
		List<MPlaceholder> locals = findElements(perspective, null, MPlaceholder.class, null,
				IN_ANY_PERSPECTIVE);
		for (MPlaceholder local : locals) {
			for (MPlaceholder global : globals) {
				if (global.getRef() == local.getRef()) {
					MElementContainer<MUIElement> localParent = local.getParent();
					local.getParent().getChildren().remove(local);
					setStackVisibility(localParent);
				}
			}
		}
	}
	/**
	 * @param parent
	 */
	private void setStackVisibility(MElementContainer<MUIElement> parent) {
		for (MUIElement child : parent.getChildren()) {
			if (child.isToBeRendered() && child.isVisible()) {
				parent.setToBeRendered(true);
				return;
			}
		}
		parent.setToBeRendered(false);
	}
}