1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2012-03-03 17:51:48 -08:00
parent 304ce2dac3
commit d0eed235bc
3 changed files with 3 additions and 14 deletions

View file

@ -45,7 +45,6 @@ public class IndentActionTest extends TestCase {
} }
protected static class IndentTestSetup extends TestSetup { protected static class IndentTestSetup extends TestSetup {
private ICProject fCProject; private ICProject fCProject;
public IndentTestSetup(Test test) { public IndentTestSetup(Test test) {
@ -77,9 +76,6 @@ public class IndentActionTest extends TestCase {
private SourceViewer fSourceViewer; private SourceViewer fSourceViewer;
private IDocument fDocument; private IDocument fDocument;
/*
* @see junit.framework.TestCase#setUp()
*/
@Override @Override
protected void setUp() throws Exception { protected void setUp() throws Exception {
String filename= createFileName("Before"); String filename= createFileName("Before");
@ -88,9 +84,6 @@ public class IndentActionTest extends TestCase {
fDocument= fSourceViewer.getDocument(); fDocument= fSourceViewer.getDocument();
} }
/*
* @see junit.framework.TestCase#tearDown()
*/
@Override @Override
protected void tearDown() throws Exception { protected void tearDown() throws Exception {
EditorTestHelper.closeEditor(fEditor); EditorTestHelper.closeEditor(fEditor);

View file

@ -62,7 +62,6 @@ import org.eclipse.cdt.internal.ui.util.EditorUtility;
* @see org.eclipse.cdt.internal.ui.text.CIndenter * @see org.eclipse.cdt.internal.ui.text.CIndenter
*/ */
public class IndentAction extends TextEditorAction { public class IndentAction extends TextEditorAction {
/** The caret offset after an indent operation. */ /** The caret offset after an indent operation. */
private int fCaretOffset; private int fCaretOffset;
@ -85,12 +84,9 @@ public class IndentAction extends TextEditorAction {
fIsTabAction= isTabAction; fIsTabAction= isTabAction;
} }
/*
* @see org.eclipse.jface.action.Action#run()
*/
@Override @Override
public void run() { public void run() {
// update has been called by the framework // Update has been called by the framework
if (!isEnabled() || !validateEditorInputState()) if (!isEnabled() || !validateEditorInputState())
return; return;
@ -119,7 +115,7 @@ public class IndentAction extends TextEditorAction {
Runnable runnable= new Runnable() { Runnable runnable= new Runnable() {
@Override @Override
public void run() { public void run() {
IRewriteTarget target= (IRewriteTarget)getTextEditor().getAdapter(IRewriteTarget.class); IRewriteTarget target= (IRewriteTarget) getTextEditor().getAdapter(IRewriteTarget.class);
if (target != null) if (target != null)
target.beginCompoundChange(); target.beginCompoundChange();

View file

@ -887,7 +887,7 @@ public final class CIndenter {
*/ */
public int findReferencePosition(int offset, boolean danglingElse, boolean matchBrace, boolean matchParen, public int findReferencePosition(int offset, boolean danglingElse, boolean matchBrace, boolean matchParen,
boolean matchCase, boolean matchAccessSpecifier) { boolean matchCase, boolean matchAccessSpecifier) {
fIndent= 0; // the indentation modification fIndent= 0; // The indentation modification
fAlign= CHeuristicScanner.NOT_FOUND; fAlign= CHeuristicScanner.NOT_FOUND;
fPosition= offset; fPosition= offset;