fEditor.selectAndReveal(0, 0);
StyledText text= (StyledText) fEditor.getAdapter(Control.class); text.setSelection(0);
	private void measure(PerformanceMeter performanceMeter, int runs) throws Exception {		IAction action= fEditor.getAction(ITextEditorActionConstants.FIND);		Display display= EditorTestHelper.getActiveDisplay();		for (int i= 0; i < runs; i++) {			fEditor.selectAndReveal(0, 0);			runAction(action);						// Fill Find field			SWTEventHelper.pressKeyChar(display, FIND);						// Switch to Replace field						SWTEventHelper.pressKeyCode(display, SWT.TAB);			// Fill Replace field						SWTEventHelper.pressKeyChar(display, REPLACE);						performanceMeter.start();						// Press Replace All button via mnemonic			SWTEventHelper.keyCodeDown(display, SWT.MOD3);			SWTEventHelper.pressKeyChar(display, 'a');			SWTEventHelper.keyCodeUp(display, SWT.MOD3);						performanceMeter.stop();						// Close Find/Replace dialog			SWTEventHelper.pressKeyCode(display, SWT.ESC);						DisplayHelper helper= new DisplayHelper() {				public boolean condition() {					return fEditor.isDirty();				}			};			assertTrue(helper.waitForCondition(display, 1000));			EditorTestHelper.revertEditor(fEditor, true);			EditorTestHelper.joinBackgroundActivities(fEditor);		}	}