Bug 99725 [typing] Moving first line of header comment increases indentation
Given a class like this: /** * Header comment */ class Foo { } Put the cursor on the first line, and use Alt+Down, Alt+Up to move it down, and then up. An extra space is added in front. If you now select the entire file and use Source > Indent, the whole file is shifted one character to the right.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaMoveLinesAction.java
if (!validateEditorInputState())
			return;
		ISourceViewer viewer= fSharedState.fEditor.getViewer();
		if (viewer == null)
			return;
		IDocument document= viewer.getDocument();
		if (document == null)
			return;
		StyledText widget= viewer.getTextWidget();
		if (widget == null)
			return;
		
		Point p= viewer.getSelectedRange();
		if (p == null)
			return;
		ITextSelection sel= new TextSelection(document, p.x, p.y);
		ITextSelection skippedLine= getSkippedLine(document, sel);
		if (skippedLine == null)
			return;
		try {
			ITextSelection movingArea= getMovingSelection(document, sel, viewer);
			
			
			if (!containedByVisibleRegion(movingArea, viewer) || !containedByVisibleRegion(skippedLine, viewer))
				return;
			
			String moving= movingArea.getText();
			String skipped= skippedLine.getText();
			if (moving == null || skipped == null)
				return;