public class RefactoringTickProvider extends Object
RefactoringTickProvider
to specify the tick distribution during progress reporting when executing the
check conditions, create change and change initialization steps.Modifier and Type | Field and Description |
---|---|
static RefactoringTickProvider |
DEFAULT
The default refactoring tick provider
|
Constructor and Description |
---|
RefactoringTickProvider(int checkInitialConditionsTicks,
int checkFinalConditionsTicks,
int createChangeTicks,
int initializeChangeTicks)
Creates a new refactoring tick provider with the given values
|
Modifier and Type | Method and Description |
---|---|
int |
getAllTicks()
Sum of
getCheckConditionsTicks , getCreateChangeTicks
and getInitializeChangeTicks . |
int |
getCheckAllConditionsTicks()
Sum of
getCheckInitialConditionsTicks() and
getCheckFinalConditionsTicks |
int |
getCheckFinalConditionsTicks()
Number of ticks reserved in the parent progress monitor of the progress monitor
passed to
Refactoring#checkFinalConditions() . |
int |
getCheckInitialConditionsTicks()
Number of ticks reserved in the parent progress monitor of the progress monitor
passed to
Refactoring#checkInitialConditions() . |
int |
getCreateChangeTicks()
Number of ticks reserved in the parent progress monitor of the progress monitor
passed to
Refactoring#createChange() . |
int |
getInitializeChangeTicks()
Number of ticks reserved in the parent progress monitor for the progress monitor
passed to
which is executed on the object returned by Refactoring#createChange() . |
public static final RefactoringTickProvider DEFAULT
public RefactoringTickProvider(int checkInitialConditionsTicks, int checkFinalConditionsTicks, int createChangeTicks, int initializeChangeTicks)
checkInitialConditionsTicks
- ticks used in the initial condition
check stepcheckFinalConditionsTicks
- ticks used in the final condition
check stepcreateChangeTicks
- ticks used in the create change stepinitializeChangeTicks
- ticks used in the change validation stepspublic int getAllTicks()
getCheckConditionsTicks
, getCreateChangeTicks
and getInitializeChangeTicks
.public int getCheckAllConditionsTicks()
getCheckInitialConditionsTicks()
and
getCheckFinalConditionsTicks
public int getCheckInitialConditionsTicks()
Refactoring#checkInitialConditions()
.public int getCheckFinalConditionsTicks()
Refactoring#checkFinalConditions()
.public int getCreateChangeTicks()
Refactoring#createChange()
.public int getInitializeChangeTicks()
Change.initializeValidationData(IProgressMonitor)
which is executed on the object returned by Refactoring#createChange()
.
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.