public class ProgressListenerImpl extends java.lang.Object implements ProgressListener
Modifier and Type | Field and Description |
---|---|
(package private) Abbreviator |
abbr |
(package private) int |
addFileCount |
(package private) MigratorFrame |
frame |
(package private) int |
inplaceConversionCount |
(package private) long |
lastUpdate |
(package private) int |
scanFileCount |
(package private) static int |
TARGET_FILE_LENGTH |
(package private) static int |
UPDATE_THRESHOLD |
Constructor and Description |
---|
ProgressListenerImpl(java.io.File projectFolder,
MigratorFrame frame) |
Modifier and Type | Method and Description |
---|---|
(package private) java.lang.String |
getShortName(java.io.File file) |
(package private) boolean |
isTooSoon() |
void |
onDirectory(java.io.File file) |
void |
onDone() |
void |
onFileAddition(java.io.File file) |
void |
onFileScan(java.io.File file) |
void |
onFileScanBegin() |
void |
onInplaceConversion(java.io.File file) |
void |
onMigrationBegin() |
static final int TARGET_FILE_LENGTH
static final int UPDATE_THRESHOLD
int addFileCount
int scanFileCount
int inplaceConversionCount
final MigratorFrame frame
Abbreviator abbr
long lastUpdate
public ProgressListenerImpl(java.io.File projectFolder, MigratorFrame frame)
public void onMigrationBegin()
onMigrationBegin
in interface ProgressListener
boolean isTooSoon()
public void onDirectory(java.io.File file)
onDirectory
in interface ProgressListener
public void onDone()
onDone
in interface ProgressListener
public void onFileAddition(java.io.File file)
onFileAddition
in interface ProgressListener
public void onFileScan(java.io.File file)
onFileScan
in interface ProgressListener
public void onInplaceConversion(java.io.File file)
onInplaceConversion
in interface ProgressListener
java.lang.String getShortName(java.io.File file)
public void onFileScanBegin()
onFileScanBegin
in interface ProgressListener