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
* @see org.eclipse.ui.dialogs.FilteredItemsSelectionDialog#getItemsComparator()
	 */
	protected Comparator getItemsComparator() {
		return new Comparator() {
			/*
			 * (non-Javadoc)
			 * 
			 * @see java.util.Comparator#compare(java.lang.Object,
			 *      java.lang.Object)
			 */
			public int compare(Object o1, Object o2) {
				Collator collator = Collator.getInstance();
				IResource resource1 = (IResource) o1;
				IResource resource2 = (IResource) o2;
				String s1 = resource1.getName();
				String s2 = resource2.getName();
				
				
				int s1Dot = s1.lastIndexOf('.');
				int s2Dot = s2.lastIndexOf('.');
				String n1 = s1Dot == -1 ? s1 : s1.substring(0, s1Dot);
				String n2 = s2Dot == -1 ? s2 : s2.substring(0, s2Dot);
				int comparability = collator.compare(n1, n2);
				if (comparability != 0)
					return comparability;
				
				
				if (s1Dot != -1 || s2Dot != -1) {
					comparability = collator.compare(s1, s2);
					if (comparability != 0)