Bug 311194 [Dialogs] FilteredResourcesSelectionDialog's constructor doesn't specify what to put in the 'typesMask' parameter
Today someone on IRC put 0 when he should've been using IResource.FILE. We should clarify the javadocs.
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/FilteredResourcesSelectionDialog.java
filenamePattern= "**"; 
				
				if (sep > 0) {
					if (filenamePattern.length() == 0) 
						filenamePattern= "**"; 
						
					String containerPattern = stringPattern.substring(0, sep);
					
					if (searchContainer != null) {
						relativeContainerPattern = new SearchPattern(SearchPattern.RULE_EXACT_MATCH | SearchPattern.RULE_PATTERN_MATCH);
						relativeContainerPattern.setPattern(searchContainer.getFullPath().append(containerPattern).toString());
					}
					
					if (!containerPattern.startsWith("" + IPath.SEPARATOR)) 
						containerPattern = IPath.SEPARATOR + containerPattern;
					this.containerPattern= new SearchPattern(SearchPattern.RULE_EXACT_MATCH | SearchPattern.RULE_PREFIX_MATCH | SearchPattern.RULE_PATTERN_MATCH);
					this.containerPattern.setPattern(containerPattern);
				}
				patternMatcher.setPattern(filenamePattern);
				
			} else {
				filenamePattern= stringPattern;
			}
			
			int lastPatternDot = filenamePattern.lastIndexOf('.');
			if (lastPatternDot != -1) {
				namePattern = new SearchPattern();
				namePattern.setPattern(filenamePattern.substring(0, lastPatternDot));
				extensionPattern = new SearchPattern();
				extensionPattern.setPattern(filenamePattern.substring(lastPatternDot + 1));