Package com.aelitis.azureus.ui.swt

Examples of com.aelitis.azureus.ui.swt.Initializer


        }
      });
    }
   
    if (!AzureusCoreFactory.isCoreRunning()) {
      final Initializer initializer = Initializer.getLastInitializer();
      if (initializer != null) {
        initializer.addListener(new InitializerListener() {
          public void reportPercent(final int percent) {
            Utils.execSWTThread(new AERunnable() {
              public void runSupport() {
                if (soWaitProgress != null && !soWaitProgress.isDisposed()) {
                  soWaitProgress.setData("progress", new Long(percent));
                  soWaitProgress.getControl().redraw();
                  soWaitProgress.getControl().update();
                }
              }
            });
            if (percent > 100) {
              initializer.removeListener(this);
            }
          }
       
          public void reportCurrentTask(String currentTask) {
            if (soWaitTask != null && !soWaitTask.isDisposed()) {
View Full Code Here


    if (!AzureusCoreFactory.isCoreRunning()) {
      if (soWait != null) {
        soWait.setVisible(true);
        //soWait.getControl().getParent().getParent().getParent().layout(true, true);
      }
      final Initializer initializer = Initializer.getLastInitializer();
      if (initializer != null) {
        initializer.addListener(new InitializerListener() {
          public void reportPercent(final int percent) {
            Utils.execSWTThread(new AERunnable() {
              public void runSupport() {
                if (soWaitProgress != null && !soWaitProgress.isDisposed()) {
                  waitProgress = percent;
                  soWaitProgress.getControl().redraw();
                  soWaitProgress.getControl().update();
                }
              }
            });
            if (percent > 100) {
              initializer.removeListener(this);
            }
          }

          public void reportCurrentTask(String currentTask) {
            if (soWaitTask != null && !soWaitTask.isDisposed()) {
View Full Code Here

TOP

Related Classes of com.aelitis.azureus.ui.swt.Initializer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.