Bug 51596 [Jobs] Progress Dialog on dual monitor setup opens on the wrong monitor
Build I20040205 on WIN NT/SP6. I have a dual monitor setup and I usually run eclipse on the second monitor. The normal progress dialog opens correctly centered on the second monitor. The new progress monitor (the one which shows that a operation is blocked by a background process with the list of background tasks operating) always opens on the first monitor.
bundles/org.eclipse.jface/src/org/eclipse/jface/window/Window.java
* @param code the return code
 */
protected void setReturnCode(int code) {
	returnCode = code;
	globalReturnCode = code;
}
/**
 * Given the desired position of the window, this method returns an 
 * adjusted position such that the window is no larger than its monitor,
 * and does not extend beyond the edge of the monitor. This is used for
 * computing the initial window position, and subclasses can use this
 * as a utility method if they want to limit the region in which the
 * window may be moved. 
 * 
 * @param preferredSize the preferred position of the window
 * @return a rectangle as close as possible to preferredSize that does
 * not extend outside the monitor 
 * 
 * @since 3.0
 */
protected Rectangle getConstrainedShellBounds(Rectangle preferredSize) {
	Rectangle result = new Rectangle(preferredSize.x, preferredSize.y, 
			preferredSize.width, preferredSize.height);
	
	Monitor mon = shell.getMonitor();
	
	Rectangle bounds = mon.getClientArea();
	
	if (result.height > bounds.height) {
		result.height = bounds.height;