Bug 57751 1) Export javadoc not based on package explorer selection but on open editor [javadoc] [export]
build: eclipse r3.0 M8 I find that when making a selection of a project in the Package Explorer view, then open the popup menu and select Export > javadoc and press the Next button, the selected export option is based on the file selected in the editor and not the project in the package explorer. When exporting to jar for example the scope of the export is defined by the selection in the package explorer.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocWizard.java
* @return true if user pressed OK.
	 */
	private boolean confirmSaveModifiedResources(IFile[] dirtyFiles) {
		if (dirtyFiles == null || dirtyFiles.length == 0)
			return true;
		
		Display display= getShell().getDisplay();
		if (display == null || display.isDisposed())
			return false;
		
		final ConfirmSaveModifiedResourcesDialog dlg= new ConfirmSaveModifiedResourcesDialog(getShell(), dirtyFiles);
		final int[] intResult= new int[1];
		Runnable runnable= new Runnable() {
			public void run() {
				intResult[0]= dlg.open();
			}
		};
		display.syncExec(runnable);
		return intResult[0] == IDialogConstants.OK_ID;
	}
	/**
	 * Save all of the editors in the workbench.  Must be run in the display thread.
	 * 
	 * @param dirtyFiles
	 * @return true if successful.
	 * @throws CoreException
	 * @throws InvocationTargetException
	 */
	private boolean saveModifiedResources(final IFile[] dirtyFiles) throws CoreException, InvocationTargetException {
		IWorkspace workspace= ResourcesPlugin.getWorkspace();