Bug 151990 [Progress] Task Name Not Displayed in ProgressMonitorDialog with openOnRun==false
When setOpenOnRun(false) is used on a ProgressMonitorDialog, the task name is not displayed correctly. Steps to reproduce: 1) Instantiate a ProgressMonitorDialog 2) Call setOpenOnRun(false) 3) Call run() 4) After a delay, call open() Actual Result: The default task name "Operation in Progress" is displayed. Expected Result: The task name specified in the call to the monitor's beginTask method. Suggested fix: Call setMessage(task) whenn the dialog is opened.
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/ProgressMonitorDialog.java
subTaskLabel = new Label(parent, SWT.LEFT | SWT.WRAP);
		gd = new GridData(GridData.FILL_HORIZONTAL);
		gd.heightHint = convertVerticalDLUsToPixels(LABEL_DLUS);
		gd.horizontalSpan = 2;
		subTaskLabel.setLayoutData(gd);
		subTaskLabel.setFont(parent.getFont());
		return parent;
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.jface.window.Window#getInitialSize()
	 */
	protected Point getInitialSize() {
		Point calculatedSize = super.getInitialSize();
		if (calculatedSize.x < 450) {
			calculatedSize.x = 450;
		}
		return calculatedSize;
	}
	/**
	 * Returns the progress monitor to use for operations run in this progress
	 * dialog.
	 * 
	 * @return the progress monitor
	 */
	public IProgressMonitor getProgressMonitor() {
		return progressMonitor;
	}