Bug 21958 ControlExample FileDialog does not filter correctly
The FileDialog created in the Dialog tab has extensions and filter names set but these are not working correctly. Delete the entry in File name field Set the filter to Doc files and go to a folder with *.doc files. You will see the folders but not the files. Same is true for all the other filters. I set the file name field to "*.doc" then I see the doc files. I noted that this occurs even if the file extension field is set to something else such as Batch Files. I noted that the extension for .txt has an extra period after ie (".txt.") but removing this still does not fix the dialog behaviour. I also noted that on GTK and Motif the filters do not seem to apply at all. It should be noted in the javadoc for FileDialog.setFilterExtensions etc that these filters are not applied on all platforms.
examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/DialogTab.java
* Create a multi lined, scrolled text widget for output.
		 */
		textWidget = new Text(resultGroup, SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);
		GridData gridData = new GridData (GridData.FILL_BOTH);
		textWidget.setLayoutData (gridData);	
	}
	
	/**
	 * Handle a dialog type combo selection event.
	 *
	 * @param event the selection event
	 */
	void dialogSelected (SelectionEvent event) {
	
		
		String name = dialogCombo.getText ();
		boolean isMessageBox = name.equals (instance.getResourceString("MessageBox"));
		boolean isFileDialog = name.equals (instance.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);