Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ltk.core.refactoring
Class RefactoringTickProvider

java.lang.Object
  extended by 
org.eclipse.ltk.core.refactoring.RefactoringTickProvider

public class RefactoringTickProvider
extends Object

Implementors of refactorings uses instances of RefactoringTickProvider to specify the tick distribution during progress reporting when executing the check conditions, create change and change initialization steps.

Since:
3.2

Field Summary
static  RefactoringTickProvider DEFAULT
          The default refactoring tick provider
 
Constructor Summary
RefactoringTickProvider (int checkInitialConditionsTicks, int checkFinalConditionsTicks, int createChangeTicks, int initializeChangeTicks)
          Creates a new refactoring tick provider with the given values
 
Method Summary
 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 Change.initializeValidationData(IProgressMonitor) which is executed on the object returned by Refactoring#createChange().
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final 
RefactoringTickProvider DEFAULT
The default refactoring tick provider

Constructor Detail

RefactoringTickProvider

public RefactoringTickProvider(int checkInitialConditionsTicks,
                               int checkFinalConditionsTicks,
                               int createChangeTicks,
                               int initializeChangeTicks)
Creates a new refactoring tick provider with the given values

Parameters:
checkInitialConditionsTicks - ticks used in the initial condition check step
checkFinalConditionsTicks - ticks used in the final condition check step
createChangeTicks - ticks used in the create change step
initializeChangeTicks - ticks used in the change validation steps
Method Detail

getAllTicks

public int getAllTicks()
Sum of getCheckConditionsTicks, getCreateChangeTicks and getInitializeChangeTicks.

Returns:
the number of ticks, >= 0

getCheckAllConditionsTicks

public int getCheckAllConditionsTicks()
Sum of getCheckInitialConditionsTicks() and getCheckFinalConditionsTicks

Returns:
the number of ticks, >= 0

getCheckInitialConditionsTicks

public int getCheckInitialConditionsTicks()
Number of ticks reserved in the parent progress monitor of the progress monitor passed to Refactoring#checkInitialConditions().

Returns:
the number of ticks, >= 0

getCheckFinalConditionsTicks

public int getCheckFinalConditionsTicks()
Number of ticks reserved in the parent progress monitor of the progress monitor passed to Refactoring#checkFinalConditions().

Returns:
the number of ticks, >= 0

getCreateChangeTicks

public int getCreateChangeTicks()
Number of ticks reserved in the parent progress monitor of the progress monitor passed to Refactoring#createChange().

Returns:
the number of ticks, >= 0

getInitializeChangeTicks

public int getInitializeChangeTicks()
Number of ticks reserved in the parent progress monitor for the progress monitor passed to Change.initializeValidationData(IProgressMonitor) which is executed on the object returned by Refactoring#createChange().

Returns:
the number of ticks, >= 0

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire