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
return comparability;
				}
				
				if (searchContainer != null) {
					IContainer c1 = resource1.getParent();
					IContainer c2 = resource2.getParent();
					
					
					comparability = pathDistance(c1) - pathDistance(c2);
					if (comparability != 0)
						return comparability;
				}
				
				IPath p1 = resource1.getFullPath();
				IPath p2 = resource2.getFullPath();
				
				int c1 = p1.segmentCount() - 1;
				int c2 = p2.segmentCount() - 1;
				for (int i= 0; i < c1 && i < c2; i++) {
					comparability = collator.compare(p1.segment(i), p2.segment(i));
					if (comparability != 0)
						return comparability;
				}
				comparability = c1 - c2;
				return comparability;
			}
		};
	}
	/**
	 * Return the "distance" of the item from the root of the relative search