setText.selectAll(); setText.setFocus();
	void createSetGetDialog(int x, int y, String[] methodNames) {		final Shell dialog = new Shell(eventConsole.getShell (), SWT.DIALOG_TRIM | SWT.RESIZE | SWT.MODELESS);		dialog.setLayout(new GridLayout(2, false));		dialog.setText(getTabText() + " " + ControlExample.getResourceString ("Set_Get"));		nameCombo = new Combo(dialog, SWT.NONE);		nameCombo.setItems(methodNames);		nameCombo.setText(methodNames[0]);		nameCombo.setVisibleItemCount(methodNames.length);		nameCombo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false));		nameCombo.addSelectionListener(new SelectionAdapter() {			public void widgetSelected(SelectionEvent e) {				resetLabels();			}		});		returnTypeLabel = new Label(dialog, SWT.NONE);		returnTypeLabel.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, false, false));		setButton = new Button(dialog, SWT.PUSH);		setButton.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, false, false));		setButton.addSelectionListener(new SelectionAdapter() {			public void widgetSelected(SelectionEvent e) {				setValue();			}		});		setText = new Text(dialog, SWT.SINGLE | SWT.BORDER);		setText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false));		getButton = new Button(dialog, SWT.PUSH);		getButton.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, false, false));		getButton.addSelectionListener(new SelectionAdapter() {			public void widgetSelected(SelectionEvent e) {				getValue();			}		});		getText = new Text(dialog, SWT.MULTI | SWT.BORDER | SWT.READ_ONLY | SWT.H_SCROLL | SWT.V_SCROLL);		GridData data = new GridData(SWT.FILL, SWT.FILL, true, true);		data.widthHint = 240;		data.heightHint = 200;		getText.setLayoutData(data);		resetLabels();		dialog.setDefaultButton(setButton);		dialog.pack();		dialog.setLocation(x, y);		dialog.open();	}