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
}
	private static IPreferenceStore getPreferenceStore() {
		return JavaPlugin.getDefault().getPreferenceStore();
	}
	private static String createIndent(int level) {
		StringBuffer buffer= new StringBuffer();
		if (useSpaces()) {
			int tabWidth= getPreferenceStore().getInt(PreferenceConstants.EDITOR_TAB_WIDTH);
			int width= level * tabWidth;
			for (int i= 0; i != width; ++i)
				buffer.append(' ');
		} else {
			buffer.append('\t');
		}
		return buffer.toString();
	}
	private static String createPrefix(int displayedWidth) {
		StringBuffer buffer= new StringBuffer();
		if (useSpaces()) {
			for (int i= 0; i != displayedWidth; ++i)
				buffer.append(' ');
		} else {
			int tabWidth= getPreferenceStore().getInt(PreferenceConstants.EDITOR_TAB_WIDTH);
			int div= displayedWidth / tabWidth;
			int mod= displayedWidth % tabWidth;
			for (int i= 0; i != div; ++i)
				buffer.append('\t');
			for (int i= 0; i != mod; ++i)
				buffer.append(' ');
		}