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
/**
	 * This implementation of IRunnableContext#run(boolean, boolean,
	 * IRunnableWithProgress) runs the given <code>IRunnableWithProgress</code>
	 * using the progress monitor for this progress dialog and blocks until the
	 * runnable has been run, regardless of the value of <code>fork</code>.
	 * The dialog is opened before the runnable is run, and closed after it
	 * completes. It is recommended that <code>fork</code> is set to true in
	 * most cases. If <code>fork</code> is set to <code>false</code>, the
	 * runnable will run in the UI thread and it is the runnable's
	 * responsibility to call <code>Display.readAndDispatch()</code> to ensure
	 * UI responsiveness.
	 */
	public void run(boolean fork, boolean cancelable,
			IRunnableWithProgress runnable) throws InvocationTargetException,
			InterruptedException {
		setCancelable(cancelable);
		try {
			aboutToRun();
			
			progressMonitor.forked = fork;
			ModalContext.run(runnable, fork, getProgressMonitor(), getShell()
					.getDisplay());
		} finally {
			finishedRun();
		}
	}
	/**
	 * Returns whether the dialog should be opened before the operation is run.
	 * Defaults to <code>true</code>
	 *