Bug 27512 Auto-indent levels broken for cut and paste
On M3: 1) Double-click on the opening brace '{' of a method. 2) Cut the method body. 3) Paste the method body. Problem: indentation is mangled incorrectly.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java
buffer.append(lineDelimiter);
		}
		return buffer.toString();
	}
	private String format(String paragraph, String indent, String lineDelimiter, boolean indentFirstLine) {
		final StringBuffer buffer= new StringBuffer();
		for (final Iterator iterator= new LineIterator(paragraph); iterator.hasNext();) {
			String line= (String) iterator.next();
			if (indentFirstLine && line.trim().length() != 0)
				buffer.append(indent);
			else
				indentFirstLine= true;
			buffer.append(line);
			if (iterator.hasNext())
				buffer.append(lineDelimiter);
		}
		return buffer.toString();
	}
	private String getOneIndentLevel() {
		return String.valueOf('\t');
	}
	/**
	 * Returns whether the text ends with one of the given search strings.
	 */
	private boolean endsWithDelimiter(IDocument d, String txt) {
		String[] delimiters= d.getLegalLineDelimiters();
		for (int i= 0; i < delimiters.length; i++) {
			if (txt.endsWith(delimiters[i]))
				return true;
		}