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
Button modelessButton, primaryModalButton, applicationModalButton, systemModalButton;
	Button saveButton, openButton;
	static String [] FilterExtensions	= {"*.txt", "*.bat", "*.doc"};
	static String [] FilterNames		= {ControlExample.getResourceString("FilterName_0"),
										   ControlExample.getResourceString("FilterName_1"),
										   ControlExample.getResourceString("FilterName_2")};
	/**
	 * Creates the Tab within a given instance of ControlExample.
	 */
	DialogTab(ControlExample instance) {
		super(instance);
	}
	/**
	 * Handle a button style selection event.
	 *
	 * @param event the selection event
	 */
	void buttonStyleSelected(SelectionEvent event) {
		/*
		 * Only certain combinations of button styles are
		 * supported for various dialogs.  Make sure the
		 * control widget reflects only valid combinations.
		 */
		okButton.setEnabled (
			!(yesButton.getSelection () || noButton.getSelection () || 
				retryButton.getSelection () || abortButton.getSelection () ||
					ignoreButton.getSelection ()));
		cancelButton.setEnabled (
			!(abortButton.getSelection () || ignoreButton.getSelection ()));
		yesButton.setEnabled (