IWorkbenchPage page= getWorkbench().getActiveWorkbenchWindow().getActivePage();
IWorkbenchWindow activeWorkbenchWindow= workbench.getActiveWorkbenchWindow(); if (activeWorkbenchWindow == null) return null;  IWorkbenchPage page= activeWorkbenchWindow.getActivePage();
	private TestRunnerViewPart findAndShowTestRunnerViewPart(){		IWorkbench workbench= getWorkbench();		if (workbench == null)			return null;					IWorkbenchPage page= getWorkbench().getActiveWorkbenchWindow().getActivePage();		if (page == null)			return null;					try { // show the result view if it isn't shown yet			TestRunnerViewPart  testRunner= (TestRunnerViewPart)page.findView(TestRunnerViewPart.NAME);			// TODO: have force the creation of view part contents 			// otherwise the UI will not be updated			if(testRunner == null || ! testRunner.isCreated()) {				IWorkbenchPart activePart= page.getActivePart();				testRunner= (TestRunnerViewPart)page.showView(TestRunnerViewPart.NAME);				//restore focus stolen by the creation of the result view				page.activate(activePart);			} 			return testRunner;		} catch (PartInitException pie) {			log(pie);			return null;		}	}