Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 400670 | Differences between
and this patch

Collapse All | Expand All

(-)a/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/CodeFormatFix.java (-2 / +3 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2013 IBM Corporation and others.
2
 * Copyright (c) 2000, 2015 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 137-143 Link Here
137
					}
137
					}
138
				}
138
				}
139
139
140
				if (correctIndentation) {
140
				// Don't apply correct indentation if already formatting all lines
141
				if (correctIndentation && (!format || regions != null)) {
141
					JavaPlugin.getDefault().getJavaTextTools().setupJavaDocumentPartitioner(document, IJavaPartitions.JAVA_PARTITIONING);
142
					JavaPlugin.getDefault().getJavaTextTools().setupJavaDocumentPartitioner(document, IJavaPartitions.JAVA_PARTITIONING);
142
					TextEdit edit= IndentAction.indent(document, cu.getJavaProject());
143
					TextEdit edit= IndentAction.indent(document, cu.getJavaProject());
143
					if (edit != null) {
144
					if (edit != null) {

Return to bug 400670