SetupWizard setup_wizard;
JMuleCoreFactory.create();
JMuleCore _core = JMuleCoreFactory.getSingleton();
JMuleCoreLifecycleAdapter core_lifecycle_listener = new JMuleCoreLifecycleAdapter() {
public void componentStarted(JMuleCoreComponent component) {
if (component instanceof ConfigurationManager)
splash.increaseProgress(10, "Config manager started");
else if (component instanceof SharingManager)
splash.increaseProgress(10, "Sharing manager started");
else if (component instanceof UploadManager)
splash.increaseProgress(10, "Upload manager started");
else if (component instanceof PeerManager)
splash.increaseProgress(10, "Peer manager started");
else if (component instanceof DownloadManager)
splash.increaseProgress(10, "Download manager started");
else if (component instanceof ServerManager)
splash.increaseProgress(10, "Server manager started");
}
};
_core.addLifecycleListener(core_lifecycle_listener);
_core.start();
splash.increaseProgress(10, "JMule core started");
_core.removeLifecycleListener(core_lifecycle_listener);
boolean is_core_first_run = _core.isFirstRun();
if (!is_core_first_run) {
splash.increaseProgress(5, "Starting JMule UI manager");