mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Cosmetics.
This commit is contained in:
parent
304ce2dac3
commit
d0eed235bc
3 changed files with 3 additions and 14 deletions
|
@ -45,7 +45,6 @@ public class IndentActionTest extends TestCase {
|
|||
}
|
||||
|
||||
protected static class IndentTestSetup extends TestSetup {
|
||||
|
||||
private ICProject fCProject;
|
||||
|
||||
public IndentTestSetup(Test test) {
|
||||
|
@ -77,9 +76,6 @@ public class IndentActionTest extends TestCase {
|
|||
private SourceViewer fSourceViewer;
|
||||
private IDocument fDocument;
|
||||
|
||||
/*
|
||||
* @see junit.framework.TestCase#setUp()
|
||||
*/
|
||||
@Override
|
||||
protected void setUp() throws Exception {
|
||||
String filename= createFileName("Before");
|
||||
|
@ -88,9 +84,6 @@ public class IndentActionTest extends TestCase {
|
|||
fDocument= fSourceViewer.getDocument();
|
||||
}
|
||||
|
||||
/*
|
||||
* @see junit.framework.TestCase#tearDown()
|
||||
*/
|
||||
@Override
|
||||
protected void tearDown() throws Exception {
|
||||
EditorTestHelper.closeEditor(fEditor);
|
||||
|
|
|
@ -62,7 +62,6 @@ import org.eclipse.cdt.internal.ui.util.EditorUtility;
|
|||
* @see org.eclipse.cdt.internal.ui.text.CIndenter
|
||||
*/
|
||||
public class IndentAction extends TextEditorAction {
|
||||
|
||||
/** The caret offset after an indent operation. */
|
||||
private int fCaretOffset;
|
||||
|
||||
|
@ -85,12 +84,9 @@ public class IndentAction extends TextEditorAction {
|
|||
fIsTabAction= isTabAction;
|
||||
}
|
||||
|
||||
/*
|
||||
* @see org.eclipse.jface.action.Action#run()
|
||||
*/
|
||||
@Override
|
||||
public void run() {
|
||||
// update has been called by the framework
|
||||
// Update has been called by the framework
|
||||
if (!isEnabled() || !validateEditorInputState())
|
||||
return;
|
||||
|
||||
|
@ -119,7 +115,7 @@ public class IndentAction extends TextEditorAction {
|
|||
Runnable runnable= new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
IRewriteTarget target= (IRewriteTarget)getTextEditor().getAdapter(IRewriteTarget.class);
|
||||
IRewriteTarget target= (IRewriteTarget) getTextEditor().getAdapter(IRewriteTarget.class);
|
||||
if (target != null)
|
||||
target.beginCompoundChange();
|
||||
|
||||
|
|
|
@ -887,7 +887,7 @@ public final class CIndenter {
|
|||
*/
|
||||
public int findReferencePosition(int offset, boolean danglingElse, boolean matchBrace, boolean matchParen,
|
||||
boolean matchCase, boolean matchAccessSpecifier) {
|
||||
fIndent= 0; // the indentation modification
|
||||
fIndent= 0; // The indentation modification
|
||||
fAlign= CHeuristicScanner.NOT_FOUND;
|
||||
fPosition= offset;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue