Bug 76496 [Dialogs] "Open Resource" folder sorting gets reversed
Build 20041013 1. Press ctrl+shift+r to open the "Open Resource" dialog. 2. Type "plugin.xlm" 3. Notice the typo, delete the last two characters, and then type "ml" to fix the typo. 4. The "In Folders:" area now shows with reversed sorting (!!).
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ResourceListSelectionDialog.java
Rectangle display = getShell().getDisplay().getClientArea();
			int x2 = result.x + initialSize.x;
			if (x2  > display.width) {
				result.x -= x2 - display.width; 
			}
			int y2 = result.y + initialSize.y;
			if (y2 > display.height) {
				result.y -= y2 - display.height; 
			}
		}
		return result;
	}
	
    /* (non-Javadoc)
     * @see org.eclipse.jface.window.Window#getInitialSize()
     * 
     * @since 3.2
     */
	protected Point getInitialSize() {
		Point result= super.getInitialSize();
		if (initialSize != null) {
			result.x= Math.max(result.x, initialSize.x);
			result.y= Math.max(result.y, initialSize.y);
			Rectangle display= getShell().getDisplay().getClientArea();
			result.x= Math.min(result.x, display.width);
			result.y= Math.min(result.y, display.height);
		}
		return result;
	}