Bug 46341 [formatting][implementation] comment line length not correctly applied
(1105 nightly build) when formatting the declaration below, with all default code formatter options (i.e. comment line length = 80), the last word '<code>String</code>' is not correctly moved to anotherline, leaving the last line longer than 80 characters (about 87 characters i think..) /** * Sets the set of identifiers to active activities. * * @param activeActivityIds * the set of identifiers to active activities. This set may be * empty, but it must not be <code>null</code>. If this set * is not empty, it must only contain instances of <code>String</code>. */ void setActiveActivityIds(Set activeActivityIds);
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/comment/CommentRegion.java
character= reference.charAt(index);
			if (character == '\t') {
				for (int tab= 0; tab < fTabs; tab++)
					buffer.append(' ');
			} else
				buffer.append(character);
		}
		return fTextMeasurement.computeWidth(buffer.toString());
	}
	/**
	 * Tokenizes the comment region.
	 */
	protected void tokenizeRegion() {
		int index= 0;
		CommentLine line= null;
		for (final Iterator iterator= fLines.iterator(); iterator.hasNext(); index++) {
			line= (CommentLine)iterator.next();
			line.scanLine(index);
			line.tokenizeLine(index);
		}
	}
	/**
	 * Wraps the comment ranges in this comment region into comment lines.
	 * 
	 * @param width
	 *                  The maximal width of text in this comment region measured in
	 *                  average character widths
	 */
	protected void wrapRegion(final int width) {
		fLines.clear();