Rectangle bounds= item.getBounds();
Rectangle bounds= editorNode.getBounds();
	public void testOpenPreferencePage() {		Display display= EditorTestHelper.getActiveDisplay();				PreferenceDialog d= PreferencesUtil.createPreferenceDialogOn(null, null, null);		WorkbenchHelp.setHelp(d.getShell(), IWorkbenchHelpContextIds.PREFERENCE_DIALOG);		// HACK to get control back instantly		d.setBlockOnOpen(false);		d.open();		EditorTestHelper.runEventQueue();				Control control= display.getFocusControl();		assertTrue(control instanceof Tree);		Tree tree= (Tree) control;		TreeItem item= findTreeItem(tree.getItems(), "Java"); //$NON-NLS-1$		assertTrue(item != null);		tree.setSelection(new TreeItem[] {item});		EditorTestHelper.runEventQueue();				// setExpanded does not work - use keyboard events		// item.setExpanded(true);		SWTEventHelper.pressKeyCode(display, SWT.KEYPAD_ADD);		long timeout= System.currentTimeMillis() + 1000;		TreeItem[] items= item.getItems();		item= null;		while (item == null && System.currentTimeMillis() < timeout) {			EditorTestHelper.runEventQueue();			item= findTreeItem(items, "Editor");		}		assertNotNull(item);				EditorTestHelper.runEventQueue();				Rectangle bounds= item.getBounds();		Point p= new Point(bounds.x + bounds.width / 2, bounds.y + bounds.height / 2);		p= tree.toDisplay(p);		Event event= new Event();		event.type= SWT.MouseMove;		event.x= p.x;		event.y= p.y;		display.post(event);		EditorTestHelper.runEventQueue();		event.type= SWT.MouseDown;		event.button= 1;				fMeter.start();		display.post(event);		event.type= SWT.MouseUp;		display.post(event);		EditorTestHelper.runEventQueue();		fMeter.stop();		fMeter.commit();				d.close();				Performance.getDefault().assertPerformance(fMeter);	}