notifyPreloader(new ProgressNotification(0.1)); notifyPreloader(new ProgressNotification(100)); notifyPreloader(new ProgressNotification(0.3)); notifyPreloader(new ProgressNotification(400)); loadMessagesFiles(); notifyPreloader(new ProgressNotification(0.4)); notifyPreloader(new ProgressNotification(500)); loadConfigurationFiles(); notifyPreloader(new ProgressNotification(0.5)); notifyPreloader(new ProgressNotification(600)); final JRebirthThread jrt = JRebirthThread.getThread(); notifyPreloader(new ProgressNotification(0.6)); notifyPreloader(new ProgressNotification(700)); preloadResources(); notifyPreloader(new ProgressNotification(0.7)); notifyPreloader(new ProgressNotification(800)); preloadModules(); notifyPreloader(new ProgressNotification(0.8)); notifyPreloader(new ProgressNotification(1000)); notifyPreloader(new ProgressNotification(1.0));
/** * {@inheritDoc} */ @Override public void handleProgressNotification(final ProgressNotification pn) { if (this.jrebirthInitialized && pn.getProgress() >= 0.0 && pn.getProgress() <= 1.0) { this.progressBar.setProgress(pn.getProgress()); } else { this.messageText.setText(getMessageFromCode((int) pn.getProgress())); } }
/** * {@inheritDoc} */ @Override public void handleProgressNotification(final ProgressNotification pn) { if (this.jrebirthInitialized && pn.getProgress() >= 0.0 && pn.getProgress() <= 1.0) { this.progressBar.setProgress(pn.getProgress()); } else { this.messageText.setText(getMessageFromCode((int) pn.getProgress())); } }