mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Cosmetics.
This commit is contained in:
parent
9454cc4d22
commit
268e1ec735
6 changed files with 17 additions and 16 deletions
|
@ -23,11 +23,11 @@ import org.eclipse.cdt.internal.ui.refactoring.RefactoringRunner;
|
|||
|
||||
/**
|
||||
* @author Emanuel Graf
|
||||
*
|
||||
*/
|
||||
public class ExtractConstantRefactoringRunner extends RefactoringRunner {
|
||||
|
||||
public ExtractConstantRefactoringRunner(IFile file, ISelection selection, IShellProvider shellProvider, ICProject cProject) {
|
||||
public ExtractConstantRefactoringRunner(IFile file, ISelection selection,
|
||||
IShellProvider shellProvider, ICProject cProject) {
|
||||
super(file, selection, null, shellProvider, cProject);
|
||||
}
|
||||
|
||||
|
@ -40,7 +40,6 @@ public class ExtractConstantRefactoringRunner extends RefactoringRunner {
|
|||
|
||||
try {
|
||||
operator.run(shellProvider.getShell(), refactoring.getName());
|
||||
|
||||
} catch (InterruptedException e) {
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
|
|
|
@ -23,11 +23,11 @@ import org.eclipse.cdt.internal.ui.refactoring.RefactoringRunner;
|
|||
|
||||
/**
|
||||
* @author Emanuel Graf
|
||||
*
|
||||
*/
|
||||
public class ExtractFunctionRefactoringRunner extends RefactoringRunner {
|
||||
|
||||
public ExtractFunctionRefactoringRunner(IFile file, ISelection selection, IShellProvider shellProvider, ICProject cProject) {
|
||||
public ExtractFunctionRefactoringRunner(IFile file, ISelection selection,
|
||||
IShellProvider shellProvider, ICProject cProject) {
|
||||
super(file, selection, null, shellProvider, cProject);
|
||||
}
|
||||
|
||||
|
|
|
@ -88,12 +88,14 @@ public class GenerateGettersAndSettersRefactoring extends CRefactoring {
|
|||
private final GetterAndSetterContext context = new GetterAndSetterContext();
|
||||
private InsertLocation definitionInsertLocation;
|
||||
|
||||
public GenerateGettersAndSettersRefactoring(IFile file, ISelection selection, ICElement element, ICProject project) {
|
||||
public GenerateGettersAndSettersRefactoring(IFile file, ISelection selection, ICElement element,
|
||||
ICProject project) {
|
||||
super(file, selection, element, project);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RefactoringStatus checkInitialConditions(IProgressMonitor pm) throws CoreException, OperationCanceledException {
|
||||
public RefactoringStatus checkInitialConditions(IProgressMonitor pm)
|
||||
throws CoreException, OperationCanceledException {
|
||||
SubMonitor sm = SubMonitor.convert(pm, 10);
|
||||
|
||||
RefactoringStatus status = super.checkInitialConditions(sm.newChild(6));
|
||||
|
@ -111,8 +113,8 @@ public class GenerateGettersAndSettersRefactoring extends CRefactoring {
|
|||
}
|
||||
|
||||
@Override
|
||||
public RefactoringStatus checkFinalConditions(IProgressMonitor pm) throws CoreException,
|
||||
OperationCanceledException {
|
||||
public RefactoringStatus checkFinalConditions(IProgressMonitor pm)
|
||||
throws CoreException, OperationCanceledException {
|
||||
RefactoringStatus finalStatus = null;
|
||||
try {
|
||||
lockIndex();
|
||||
|
|
|
@ -29,7 +29,8 @@ import org.eclipse.cdt.internal.ui.refactoring.RefactoringRunner;
|
|||
*/
|
||||
public class GenerateGettersAndSettersRefactoringRunner extends RefactoringRunner {
|
||||
|
||||
public GenerateGettersAndSettersRefactoringRunner(IFile file, ISelection selection, ICElement elem, IShellProvider shellProvider, ICProject cProject) {
|
||||
public GenerateGettersAndSettersRefactoringRunner(IFile file, ISelection selection,
|
||||
ICElement elem, IShellProvider shellProvider, ICProject cProject) {
|
||||
super(file, selection, elem, shellProvider, cProject);
|
||||
}
|
||||
|
||||
|
|
|
@ -24,11 +24,11 @@ import org.eclipse.cdt.internal.ui.refactoring.RefactoringRunner;
|
|||
|
||||
/**
|
||||
* @author Guido Zgraggen IFS
|
||||
*
|
||||
*/
|
||||
public class HideMethodRefactoringRunner extends RefactoringRunner {
|
||||
|
||||
public HideMethodRefactoringRunner(IFile file, ISelection selection, ICElement element, IShellProvider shellProvider, ICProject cProject) {
|
||||
public HideMethodRefactoringRunner(IFile file, ISelection selection, ICElement element,
|
||||
IShellProvider shellProvider, ICProject cProject) {
|
||||
super(file, selection, element, shellProvider, cProject);
|
||||
}
|
||||
|
||||
|
|
|
@ -25,11 +25,11 @@ import org.eclipse.cdt.internal.ui.refactoring.RefactoringRunner;
|
|||
|
||||
/**
|
||||
* @author Lukas Felber
|
||||
*
|
||||
*/
|
||||
public class ImplementMethodRefactoringRunner extends RefactoringRunner {
|
||||
|
||||
public ImplementMethodRefactoringRunner(IFile file, ISelection selection, ICElement element, IShellProvider shellProvider, ICProject cProject) {
|
||||
public ImplementMethodRefactoringRunner(IFile file, ISelection selection, ICElement element,
|
||||
IShellProvider shellProvider, ICProject cProject) {
|
||||
super(file, selection, element, shellProvider, cProject);
|
||||
}
|
||||
|
||||
|
@ -43,8 +43,7 @@ public class ImplementMethodRefactoringRunner extends RefactoringRunner {
|
|||
refactoring.lockIndex();
|
||||
try {
|
||||
operator.run(shellProvider.getShell(), refactoring.getName());
|
||||
}
|
||||
finally {
|
||||
} finally {
|
||||
refactoring.unlockIndex();
|
||||
}
|
||||
} catch (InterruptedException e) {
|
||||
|
|
Loading…
Add table
Reference in a new issue