Bug 34122 Control Example
Eclipse 200303062359 RH 8.0 Combo Tab The SWT.BORDER button does not seem accessible. The SWT.READ_ONLY button is only valid when SWT.DROP_DOWN is selected, but it is not disabled when SWT.SIMPLE is selected Dialog Tab Dialog type = message box Button Styles SWT.CANCEL SWT.YES: Dialog opens with ok button. Button Styles SWT.CANCEL SWT.NO: Dialog opens with ok button. Table Tab Select SWT.CHECK: there is a lot of flash when an item is checked
examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/DialogTab.java
*
	 * @param event the selection event
	 */
	void dialogSelected (SelectionEvent event) {
	
		
		String name = dialogCombo.getText ();
		boolean isMessageBox = name.equals (ControlExample.getResourceString("MessageBox"));
		boolean isFileDialog = name.equals (ControlExample.getResourceString("FileDialog"));
		okButton.setEnabled (isMessageBox);
		cancelButton.setEnabled (isMessageBox);
		yesButton.setEnabled (isMessageBox);
		noButton.setEnabled (isMessageBox);
		retryButton.setEnabled (isMessageBox);
		abortButton.setEnabled (isMessageBox);
		ignoreButton.setEnabled (isMessageBox);
		iconErrorButton.setEnabled (isMessageBox);
		iconInformationButton.setEnabled (isMessageBox);
		iconQuestionButton.setEnabled (isMessageBox);
		iconWarningButton.setEnabled (isMessageBox);
		iconWorkingButton.setEnabled  (isMessageBox);
		saveButton.setEnabled (isFileDialog);
		openButton.setEnabled (isFileDialog);
	
		
		if (!isMessageBox) {
			okButton.setSelection (false);
			cancelButton.setSelection (false);
			yesButton.setSelection (false);
			noButton.setSelection (false);