org.mybatis.generator.eclipse.core.callback
Class EclipseProgressCallback

java.lang.Object
  extended by org.mybatis.generator.eclipse.core.callback.EclipseProgressCallback
All Implemented Interfaces:
ProgressCallback

public class EclipseProgressCallback
extends java.lang.Object
implements ProgressCallback

Author:
Jeff Butler

Constructor Summary
EclipseProgressCallback(IProgressMonitor progressMonitor)
           
 
Method Summary
 void checkCancel()
          The method is called periodically during a long running method.
 void done()
          This method is called when all generated files have been saved
 void generationStarted(int totalTasks)
          Called to note the start of the generation phase, and to note the maximum number of startTask messages that will be sent for the generation phase.
 void introspectionStarted(int totalTasks)
          Called to note the start of the introspection phase, and to note the maximum number of startTask messages that will be sent for the introspection phase.
 void saveStarted(int totalTasks)
          Called to note the start of the file saving phase, and to note the maximum number of startTask messages that will be sent for the file saving phase phase.
 void startTask(java.lang.String taskName)
          Called to denote the beginning of a save task
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EclipseProgressCallback

public EclipseProgressCallback(IProgressMonitor progressMonitor)
Method Detail

checkCancel

public void checkCancel()
                 throws java.lang.InterruptedException
Description copied from interface: ProgressCallback
The method is called periodically during a long running method. If the the implementation throws InterruptedException then the method will be canceled. Any files that have already been saved will remain on the file system.

Specified by:
checkCancel in interface ProgressCallback
Throws:
java.lang.InterruptedException - if the operation should be halted

generationStarted

public void generationStarted(int totalTasks)
Description copied from interface: ProgressCallback
Called to note the start of the generation phase, and to note the maximum number of startTask messages that will be sent for the generation phase.

Specified by:
generationStarted in interface ProgressCallback
Parameters:
totalTasks - the maximum number of times startTask will be called for the generation phase.

introspectionStarted

public void introspectionStarted(int totalTasks)
Description copied from interface: ProgressCallback
Called to note the start of the introspection phase, and to note the maximum number of startTask messages that will be sent for the introspection phase.

Specified by:
introspectionStarted in interface ProgressCallback
Parameters:
totalTasks - the maximum number of times startTask will be called for the introspection phase.

saveStarted

public void saveStarted(int totalTasks)
Description copied from interface: ProgressCallback
Called to note the start of the file saving phase, and to note the maximum number of startTask messages that will be sent for the file saving phase phase.

Specified by:
saveStarted in interface ProgressCallback
Parameters:
totalTasks - the maximum number of times startTask will be called for the file saving phase.

startTask

public void startTask(java.lang.String taskName)
Description copied from interface: ProgressCallback
Called to denote the beginning of a save task

Specified by:
startTask in interface ProgressCallback
Parameters:
taskName - a descriptive name of the current work step

done

public void done()
Description copied from interface: ProgressCallback
This method is called when all generated files have been saved

Specified by:
done in interface ProgressCallback