Package org.gudy.azureus2.core3.util

Examples of org.gudy.azureus2.core3.util.AEThread2$threadWrapper


      new Listener()
      {
        public void
        handleEvent(Event event)
        {
          new AEThread2("GenerateNetDiag", true)
          {
            public void run() {
              StringWriter sw = new StringWriter();
             
              PrintWriter  pw = new PrintWriter( sw );
View Full Code Here


    progress.setLayoutData( data );
   
    parent.layout( true, true );
   
    new AEThread2( "SimpleInstallerUI", true )
    {
      public void
      run()
      {
        try{
View Full Code Here

      }
    } catch (Exception ex) {
      ex.printStackTrace();
    }

    new AEThread2( "Async:USB" )
    {
      public void
      run()
      {
        if ( Constants.isWindows7OrHigher ){
View Full Code Here

    Messages.setLanguageText(btnUnload, "ConfigView.pluginlist.unloadSelected");
    btnUnload.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        final int[] items = table.getSelectionIndices();

        new AEThread2( "unload" ){
          public void
          run()
          {
            for (int i = 0; i < items.length; i++) {
              int index = items[i];
              if (index >= 0 && index < pluginIFs.size()) {
                PluginInterface pluginIF = (PluginInterface) pluginIFs.get(index);
                if (pluginIF.getPluginState().isOperational()) {
                  if (pluginIF.getPluginState().isUnloadable()) {
                    try {
                      pluginIF.getPluginState().unload();
                    } catch (PluginException e1) {
                      // TODO Auto-generated catch block
                      e1.printStackTrace();
                    }
                  }
                }
               
                Utils.execSWTThread(
                  new Runnable()
                  {
                    public void
                    run()
                    {
                      pluginIFs = rebuildPluginIFs();
                      table.setItemCount(pluginIFs.size());
                      Collections.sort(pluginIFs, comparator);
                      table.clearAll();
                    }
                  });
              }
            }
          }
        }.start();
      }
    });
    btnUnload.setEnabled( false );
   
    final Button btnLoad = new Button(cButtons, SWT.PUSH);
    btnUnload.setLayoutData(new GridData());
    Messages.setLanguageText(btnLoad, "ConfigView.pluginlist.loadSelected");
    btnLoad.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        final int[] items = table.getSelectionIndices();

        new AEThread2( "load" ){
          public void
          run()
          {
            for (int i = 0; i < items.length; i++) {
              int index = items[i];
View Full Code Here

          inProgress = false;
        }
      }
    };
   
    refresher = new AEThread2("Cell Refresher",true) {
      public void run() {
        try {
         
          iterationNumber = 0;
         
View Full Code Here

    instance  = _instance;
   
    try{
      monitor.addDecisionHandler(_instance );
         
      new AEThread2( "SilentInstallerUI", true )
      {
        public void
        run()
        {
          try{
View Full Code Here

                false );
            }
          }
        });
   
    new AEThread2( "ProgressWindow", true )
    {
      public void
      run()
      {
        try
View Full Code Here

  public void run()
  {
    int threadNum = 1;
    System.out.println("Telnet server started. Listening on port: " + serverSocket.getLocalPort());
   
    new AEThread2( "AZCoreStartup", true )
    {
      public void
      run()
      {
        UIConst.getAzureusCore();
View Full Code Here

                public void
                peerManagerAdded(
                  final Download      download,
                  final PeerManager    peer_manager )
                {
                  new AEThread2( "" )
                  {
                    public void
                    run()
                    {
                      DiskManager dm  = peer_manager.getDiskManager();
View Full Code Here

  {
      // we've got to take this off the current thread to avoid the connection even causing immediate
      // submission of a message which then block this thread awaiting crypto completion. "this" thread
      // is currently the selector thread which then screws the crypto protocol...
   
    new AEThread2( "SESTSConnection:connected", true )
    {
      public void
      run()
      {
        List listeners_ref = listeners.getList();
View Full Code Here

TOP

Related Classes of org.gudy.azureus2.core3.util.AEThread2$threadWrapper

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.