Bug 85549 [projection] Incorrect folding in CU without terminating linebreak
I20050215-2300 - Have a CU with contents "package copying; public class Class { }" (no linebreak here) - collapse class folding -> a "}" remains on the last line. Expected: last line is empty - set caret to end of text and press Enter -> after reconciling, there are two boxes with dots. Expected: only one box. => Folding at the end of file is only correct if the file ends with at least two empty lines.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/folding/DefaultJavaFoldingStructureProvider.java
ISourceRange nameRange= ((IMember) element).getNameRange();
				if (nameRange != null)
					return nameRange.getOffset() - position.getOffset();
			} catch (JavaModelException e) {
				
			}
		}
		
		return findFirstContent(new DocumentCharacterIterator(fCachedDocument, position.getOffset(), position.getOffset() + position.getLength()));
	}
	
	/**
	 * Finds the offset of the first identifier part within <code>content</code>.
	 * Returns 0 if none is found.
	 * 
	 * @param content the content to search
	 * @return the first index of a unicode identifier part, or zero if none can
	 *         be found
	 */
	private int findFirstContent(final CharSequence content) {
		int lenght= content.length();
		for (int i= 0; i < lenght; i++) {
			if (Character.isUnicodeIdentifierPart(content.charAt(i)))
				return i;
			i++;
		}
		return 0;
	}
	private Position createProjectionPosition(IRegion region) {