Bug 327355 Delete deprecated bringToTop(MWindow, MUIElement) method from Remove MWindow parameter from EModelService
SSIA
bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/ModelServiceImpl.java
* 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;
		}
	}
	public void resetPerspectiveModel(MPerspective persp, MWindow window) {
		if (persp == null)
			return;
		
		for (MWindow win : persp.getWindows()) {
			win.setToBeRendered(false);
		}
		persp.getWindows().clear();