com.aelitis.azureus.ui.swt
Class Initializer

java.lang.Object
  extended by com.aelitis.azureus.ui.swt.Initializer
All Implemented Interfaces:
IUIIntializer

public class Initializer
extends Object
implements IUIIntializer

Author:
TuxPaper

Field Summary
static long startTime
           
 
Constructor Summary
Initializer(AzureusCore core, StartServer startServer, String[] args)
          Main Initializer.
 
Method Summary
 void abortProgress()
           
 void addListener(InitializerListener listener)
          Add a listener that gets triggered on progress changes (tasks, percent)
static Initializer getLastInitializer()
           
static boolean handleStopRestart(boolean restart)
           
 void increaseProgress()
           
 void initializationComplete()
           
 void removeListener(InitializerListener listener)
          Remove listener that gets triggered on progress changes (tasks, percent)
 void reportCurrentTask(String currentTaskString)
           
 void reportPercent(int percent)
           
 void run()
           
 void runInSWTThread()
          Code that will be executed in the SWT Thread before IUIIntializer.run() is invoked
 void stopIt(boolean isForRestart, boolean isCloseAreadyInProgress)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

startTime

public static final long startTime
Constructor Detail

Initializer

public Initializer(AzureusCore core,
                   StartServer startServer,
                   String[] args)
Main Initializer. Usually called by reflection via org.gudy.azureus2.ui.swt.Main(String[])

Parameters:
core -
args -
Method Detail

runInSWTThread

public void runInSWTThread()
Description copied from interface: IUIIntializer
Code that will be executed in the SWT Thread before IUIIntializer.run() is invoked

Specified by:
runInSWTThread in interface IUIIntializer

run

public void run()
Specified by:
run in interface IUIIntializer

stopIt

public void stopIt(boolean isForRestart,
                   boolean isCloseAreadyInProgress)
            throws AzureusCoreException
Specified by:
stopIt in interface IUIIntializer
Throws:
AzureusCoreException

addListener

public void addListener(InitializerListener listener)
Description copied from interface: IUIIntializer
Add a listener that gets triggered on progress changes (tasks, percent)

Specified by:
addListener in interface IUIIntializer

removeListener

public void removeListener(InitializerListener listener)
Description copied from interface: IUIIntializer
Remove listener that gets triggered on progress changes (tasks, percent)

Specified by:
removeListener in interface IUIIntializer

reportCurrentTask

public void reportCurrentTask(String currentTaskString)
Specified by:
reportCurrentTask in interface IUIIntializer

increaseProgress

public void increaseProgress()
Specified by:
increaseProgress in interface IUIIntializer

abortProgress

public void abortProgress()
Specified by:
abortProgress in interface IUIIntializer

reportPercent

public void reportPercent(int percent)
Specified by:
reportPercent in interface IUIIntializer

initializationComplete

public void initializationComplete()
Specified by:
initializationComplete in interface IUIIntializer

handleStopRestart

public static boolean handleStopRestart(boolean restart)

getLastInitializer

public static Initializer getLastInitializer()