mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Code cleanup.
This commit is contained in:
parent
2161ef0cc6
commit
243e76fb58
7 changed files with 14 additions and 21 deletions
|
@ -14,10 +14,9 @@ package org.eclipse.cdt.ui.tests.refactoring.extractconstant;
|
|||
|
||||
import junit.framework.Test;
|
||||
|
||||
import org.eclipse.ltk.core.refactoring.Refactoring;
|
||||
|
||||
import org.eclipse.cdt.ui.tests.refactoring.RefactoringTestBase;
|
||||
|
||||
import org.eclipse.cdt.internal.ui.refactoring.CRefactoring;
|
||||
import org.eclipse.cdt.internal.ui.refactoring.extractconstant.ExtractConstantInfo;
|
||||
import org.eclipse.cdt.internal.ui.refactoring.extractconstant.ExtractConstantRefactoring;
|
||||
import org.eclipse.cdt.internal.ui.refactoring.utils.VisibilityEnum;
|
||||
|
@ -43,7 +42,7 @@ public class ExtractConstantRefactoringTest extends RefactoringTestBase {
|
|||
}
|
||||
|
||||
@Override
|
||||
protected Refactoring createRefactoring() {
|
||||
protected CRefactoring createRefactoring() {
|
||||
refactoring = new ExtractConstantRefactoring(getSelectedTranslationUnit(), getSelection(),
|
||||
getCProject());
|
||||
return refactoring;
|
||||
|
|
|
@ -18,11 +18,10 @@ import java.util.Map;
|
|||
|
||||
import junit.framework.Test;
|
||||
|
||||
import org.eclipse.ltk.core.refactoring.Refactoring;
|
||||
|
||||
import org.eclipse.cdt.ui.PreferenceConstants;
|
||||
import org.eclipse.cdt.ui.tests.refactoring.RefactoringTestBase;
|
||||
|
||||
import org.eclipse.cdt.internal.ui.refactoring.CRefactoring;
|
||||
import org.eclipse.cdt.internal.ui.refactoring.NameInformation;
|
||||
import org.eclipse.cdt.internal.ui.refactoring.extractfunction.ExtractFunctionInformation;
|
||||
import org.eclipse.cdt.internal.ui.refactoring.extractfunction.ExtractFunctionRefactoring;
|
||||
|
@ -64,7 +63,7 @@ public class ExtractFunctionRefactoringTest extends RefactoringTestBase {
|
|||
}
|
||||
|
||||
@Override
|
||||
protected Refactoring createRefactoring() {
|
||||
protected CRefactoring createRefactoring() {
|
||||
refactoring = new ExtractFunctionRefactoring(getSelectedTranslationUnit(), getSelection(),
|
||||
getCProject());
|
||||
return refactoring;
|
||||
|
|
|
@ -14,10 +14,9 @@ package org.eclipse.cdt.ui.tests.refactoring.extractlocalvariable;
|
|||
|
||||
import junit.framework.Test;
|
||||
|
||||
import org.eclipse.ltk.core.refactoring.Refactoring;
|
||||
|
||||
import org.eclipse.cdt.ui.tests.refactoring.RefactoringTestBase;
|
||||
|
||||
import org.eclipse.cdt.internal.ui.refactoring.CRefactoring;
|
||||
import org.eclipse.cdt.internal.ui.refactoring.extractlocalvariable.ExtractLocalVariableRefactoring;
|
||||
|
||||
/**
|
||||
|
@ -40,7 +39,7 @@ public class ExtractLocalVariableRefactoringTest extends RefactoringTestBase {
|
|||
}
|
||||
|
||||
@Override
|
||||
protected Refactoring createRefactoring() {
|
||||
protected CRefactoring createRefactoring() {
|
||||
refactoring = new ExtractLocalVariableRefactoring(getSelectedTranslationUnit(),
|
||||
getSelection(), getCProject());
|
||||
return refactoring;
|
||||
|
|
|
@ -14,11 +14,10 @@ package org.eclipse.cdt.ui.tests.refactoring.gettersandsetters;
|
|||
|
||||
import junit.framework.Test;
|
||||
|
||||
import org.eclipse.ltk.core.refactoring.Refactoring;
|
||||
|
||||
import org.eclipse.cdt.ui.PreferenceConstants;
|
||||
import org.eclipse.cdt.ui.tests.refactoring.RefactoringTestBase;
|
||||
|
||||
import org.eclipse.cdt.internal.ui.refactoring.CRefactoring;
|
||||
import org.eclipse.cdt.internal.ui.refactoring.gettersandsetters.AccessorDescriptor.AccessorKind;
|
||||
import org.eclipse.cdt.internal.ui.refactoring.gettersandsetters.GenerateGettersAndSettersRefactoring;
|
||||
import org.eclipse.cdt.internal.ui.refactoring.gettersandsetters.GetterSetterContext;
|
||||
|
@ -57,7 +56,7 @@ public class GenerateGettersAndSettersTest extends RefactoringTestBase {
|
|||
}
|
||||
|
||||
@Override
|
||||
protected Refactoring createRefactoring() {
|
||||
protected CRefactoring createRefactoring() {
|
||||
if (ascendingVisibilityOrder) {
|
||||
getPreferenceStore().setValue(PreferenceConstants.CLASS_MEMBER_ASCENDING_VISIBILITY_ORDER,
|
||||
ascendingVisibilityOrder);
|
||||
|
|
|
@ -14,10 +14,9 @@ package org.eclipse.cdt.ui.tests.refactoring.hidemethod;
|
|||
|
||||
import junit.framework.Test;
|
||||
|
||||
import org.eclipse.ltk.core.refactoring.Refactoring;
|
||||
|
||||
import org.eclipse.cdt.ui.tests.refactoring.RefactoringTestBase;
|
||||
|
||||
import org.eclipse.cdt.internal.ui.refactoring.CRefactoring;
|
||||
import org.eclipse.cdt.internal.ui.refactoring.hidemethod.HideMethodRefactoring;
|
||||
|
||||
/**
|
||||
|
@ -38,7 +37,7 @@ public class HideMethodRefactoringTest extends RefactoringTestBase {
|
|||
}
|
||||
|
||||
@Override
|
||||
protected Refactoring createRefactoring() {
|
||||
protected CRefactoring createRefactoring() {
|
||||
return new HideMethodRefactoring(getSelectedTranslationUnit(), getSelection(), getCProject());
|
||||
}
|
||||
|
||||
|
|
|
@ -14,10 +14,9 @@ package org.eclipse.cdt.ui.tests.refactoring.implementmethod;
|
|||
|
||||
import junit.framework.Test;
|
||||
|
||||
import org.eclipse.ltk.core.refactoring.Refactoring;
|
||||
|
||||
import org.eclipse.cdt.ui.tests.refactoring.RefactoringTestBase;
|
||||
|
||||
import org.eclipse.cdt.internal.ui.refactoring.CRefactoring;
|
||||
import org.eclipse.cdt.internal.ui.refactoring.implementmethod.ImplementMethodRefactoring;
|
||||
|
||||
/**
|
||||
|
@ -38,7 +37,7 @@ public class ImplementMethodRefactoringTest extends RefactoringTestBase {
|
|||
}
|
||||
|
||||
@Override
|
||||
protected Refactoring createRefactoring() {
|
||||
protected CRefactoring createRefactoring() {
|
||||
return new ImplementMethodRefactoring(getSelectedTranslationUnit(), getSelection(),
|
||||
getCProject());
|
||||
}
|
||||
|
|
|
@ -15,10 +15,9 @@ package org.eclipse.cdt.ui.tests.refactoring.togglefunction;
|
|||
import junit.framework.Test;
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
import org.eclipse.ltk.core.refactoring.Refactoring;
|
||||
|
||||
import org.eclipse.cdt.ui.tests.refactoring.RefactoringTestBase;
|
||||
|
||||
import org.eclipse.cdt.internal.ui.refactoring.CRefactoring;
|
||||
import org.eclipse.cdt.internal.ui.refactoring.togglefunction.ToggleRefactoring;
|
||||
|
||||
/**
|
||||
|
@ -48,7 +47,7 @@ public class ToggleRefactoringTest extends RefactoringTestBase {
|
|||
}
|
||||
|
||||
@Override
|
||||
protected Refactoring createRefactoring() {
|
||||
protected CRefactoring createRefactoring() {
|
||||
refactoring = new ToggleRefactoring(getSelectedTranslationUnit(), getSelection(), getCProject());
|
||||
return refactoring;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue