Bug 63700 Javadoc problem with project/package formatting
I've just downloaded 3.0 M9 and set up the following Javadoc comment setting: "New line after @param tags" UNCHECKED If I manually call format in an open file, param's description goes in the same line as @param, as expected. However, if I right-click a project or package to format several files at once, param's description are incorrectly put in a new line. Actually, if I right-click just one file from the Package Explorer and format it, it mess up the params. The bottom line: this option is respected only when using Ctrl + Shift + F or the associated menu, but not from Package Explorer.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/FormatAllAction.java
}
	
	private static Map getFomatterSettings(IJavaProject project) {
		final Map options= project.getOptions(true);
		new CommentFormattingContext().storeToMap(PreferenceConstants.getPreferenceStore(), options, true);
		return options;
	}
	
	private void doFormat(IDocument document, Map options) {
		final IFormattingContext context = new CommentFormattingContext();
		try {
			context.setProperty(FormattingContextProperties.CONTEXT_PREFERENCES, options);
			context.setProperty(FormattingContextProperties.CONTEXT_DOCUMENT, Boolean.valueOf(true));
			
			final MultiPassContentFormatter formatter= new MultiPassContentFormatter(IJavaPartitions.JAVA_PARTITIONING, IDocument.DEFAULT_CONTENT_TYPE);
			
			formatter.setMasterStrategy(new JavaFormattingStrategy());
			formatter.setSlaveStrategy(new CommentFormattingStrategy(null), IJavaPartitions.JAVA_DOC);
			formatter.setSlaveStrategy(new CommentFormattingStrategy(null), IJavaPartitions.JAVA_SINGLE_LINE_COMMENT);
			formatter.setSlaveStrategy(new CommentFormattingStrategy(null), IJavaPartitions.JAVA_MULTI_LINE_COMMENT);		
			formatter.format(document, context);
		} finally {
		    context.dispose();
		}
    }
	
	
	private void doRunOnMultiple(ICompilationUnit[] cus, MultiStatus status, IProgressMonitor monitor) throws OperationCanceledException {
		if (monitor == null) {
			monitor= new NullProgressMonitor();