Project: JDT
Bug 260531 [compare] auto-indent not working as expected
Reported: 2009-01-09 06:51:32 | Status: verified fixed

HEAD. Auto-indent does not work as expected in the Java compare editor (it behaves like in text editor and not like in Java editor). If you have e.g.: if (tools != null) {<CARET> IEditorInput editorInput= getEditorInput(sourceViewer); sourceViewer.unconfigure(); } and hit return, then you should get: if (tools != null) { <CARET> IEditorInput editorInput= getEditorInput(sourceViewer); sourceViewer.unconfigure(); } But instead we get: if (tools != null) { <CARET> IEditorInput editorInput= getEditorInput(sourceViewer); sourceViewer.unconfigure(); }

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaMergeViewer.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/EditorUtility.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java