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
buf.append(getOneIndentLevel());
			}
		} catch (BadLocationException e) {
			JavaPlugin.log(e);
		}
		
		return buf.toString();
	}
	
	private String getBlockIndent(IDocument d, DocumentCommand c) {
		if (c.offset < 0 || d.getLength() == 0)
			return null;
		try {
			int p= (c.offset == d.getLength() ? c.offset - 1 : c.offset);
			int line= d.getLineOfOffset(p);
			
			int indLine= findMatchingOpenBracket(d, line, c.offset, 1);
			if (indLine != -1 && indLine != line)
				
				return getIndentOfLine(d, indLine);
		} catch (BadLocationException e) {
			JavaPlugin.log(e);
		}
		return null;
	}
	private static final class LineIterator implements Iterator {
		
		private final IDocument fDocument;
		
		private int fLineIndex;