com.aelitis.azureus.ui.swt
Class Initializer
java.lang.Object
com.aelitis.azureus.ui.swt.Initializer
- All Implemented Interfaces:
- IUIIntializer
public class Initializer
- extends Object
- implements IUIIntializer
- Author:
- TuxPaper
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
startTime
public static final long startTime
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
-
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()