Bug 40772 [plan item] Smart tab on empty lines
When having the caret on an empty line, pressing tab cleans up the line and sets the caret it the right indentation column.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaStringAutoIndentStrategy.java
fPartitioning= partitioning;
	}
	
	private boolean isLineDelimiter(IDocument document, String text) {
		String[] delimiters= document.getLegalLineDelimiters();
		if (delimiters != null)
			return TextUtilities.equals(delimiters, text) > -1;
		return false;
	}
	
	private String getLineIndentation(IDocument document, int offset) throws BadLocationException {
		
		int adjustedOffset= (offset == document.getLength() ? offset  - 1 : offset);
		IRegion line= document.getLineInformationOfOffset(adjustedOffset);
		int start= line.getOffset();
					
		
		int end= findEndOfWhiteSpace(document, start, offset);
		
		return document.get(start, end - start);
	}
	private String getModifiedText(String string, String lineDelimiter, String indentation) throws BadLocationException {		
		String indentedLine= lineDelimiter + indentation;
		IDocument document= new Document(string);			
		StringBuffer buffer= new StringBuffer();
		IRegion line= document.getLineInformation(0);
		buffer.append(document.get(line.getOffset(), line.getLength()));
		buffer.append("\" +"); 
		int lineCount= document.getNumberOfLines();
		for (int i= 1; i < lineCount - 1; i++) {