Package com.aelitis.azureus.ui

Examples of com.aelitis.azureus.ui.UIFunctions


        //padding.setLayoutData(gridData);
      Button btnConfig = new Button(configSection, SWT.PUSH);
      Messages.setLanguageText(btnConfig, "plugins.basicview.config");
      btnConfig.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(SelectionEvent e) {
          UIFunctions uiFunctions = UIFunctionsManager.getUIFunctions();
         if (uiFunctions != null) {
           uiFunctions.openView(UIFunctions.VIEW_CONFIG,
                model.getConfigSectionID());
         }
        }
      });
      btnConfig.setLayoutData(new GridData());
View Full Code Here


        new String[]{
          action_str,
          type_str,
        });
   
    UIFunctions ui_functions = UIFunctionsManager.getUIFunctions();
   
    if ( ui_functions != null ){
   
      ui_functions.forceNotify( UIFunctions.STATUSICON_NONE, null, message, null, new Object[0], -1 );
    }
   
    Logger.log(
      new LogAlert(
        LogAlert.UNREPEATABLE,
View Full Code Here

public class UIFunctionsManagerSWT extends UIFunctionsManager
{
  public static UIFunctionsSWT
  getUIFunctionsSWT()
  {
    UIFunctions uiFunctions = getUIFunctions();
   
    if (uiFunctions instanceof UIFunctionsSWT){
     
      return (UIFunctionsSWT)uiFunctions;
    }
View Full Code Here

              context.debug("url blocked: " + url);
            } else if (!UrlFilter.getInstance().urlCanRPC(url)) {
              context.debug("url not in whitelistL " + url);
            } else {
              // implicit bring to front
              final UIFunctions functions = UIFunctionsManager.getUIFunctions();
              if (functions != null) {
                functions.bringToFront();
              }

              // this is actually sync.. so we could add a completion listener
              // and return the boolean result if we wanted/needed
              BrowserMessageDispatcher dispatcher = context.getDispatcher();
View Full Code Here

            lstLanguage.setItem(i, buildName(locales[i]));
          }
          lstLanguage.setRedraw(true);

          try {
            UIFunctions uiFunctions = UIFunctionsManager.getUIFunctions();
            if (uiFunctions != null) {
              uiFunctions.refreshLanguage();
            }
          } catch (Exception ex) {
          }
        }
      }
View Full Code Here

        {
          public void
          selected(
            MenuItem menu, Object target )
          {
                 UIFunctions uif = UIFunctionsManager.getUIFunctions();
                
                 if ( uif != null ){
                  
                   uif.openView( UIFunctions.VIEW_CONFIG, "Subscriptions" );
                 }
          }
        });
   
    SubscriptionManager subs_man = SubscriptionManagerFactory.getSingleton();
View Full Code Here

      Map decodedMap = message.getDecodedMap();
      DonationWindow.open(true, MapUtils.getMapString(decodedMap, "source-ref",
          "RPC"));
    } else if (OP_OPEN_SEARCH.equals(opid)) {
      Map decodedMap = message.getDecodedMap();
      UIFunctions uif = UIFunctionsManager.getUIFunctions();
      if (uif != null) {
        uif.doSearch(MapUtils.getMapString(decodedMap, "search-text", ""));
      }
    } else if (OP_REGISTER.equals(opid)) {
      FeatureManagerUI.openLicenceEntryWindow(false, null);
    } else {
      throw new IllegalArgumentException("Unknown operation: " + opid);
View Full Code Here

  /**
   *
   */
  private void bringToFront() {
    final UIFunctions functions = UIFunctionsManager.getUIFunctions();
    if (functions != null) {
      functions.bringToFront();
    }
  }
View Full Code Here

  }

  private void showBrowser(final String url, final String target, final int w,
      final int h, final boolean allowResize, final BrowserMessage message,
      final String sourceRef) {
    final UIFunctions functions = UIFunctionsManager.getUIFunctions();
    if (functions == null) {
      AEThread2 thread = new AEThread2("show browser " + url, true) {
        public void run() {
          final Display display = Display.getDefault();
          display.asyncExec(new AERunnable() {
            public void runSupport() {
              BrowserWindow window = new BrowserWindow(
                  display.getActiveShell(), url, w, h, allowResize, false);
              window.waitUntilClosed();
              message.complete(false, true, null);
            }
          });
        }
      };
      thread.start();
      return;
    }

    AEThread2 thread = new AEThread2("show browser " + url, true) {
      public void run() {
        if (w == 0 && target != null) {
          functions.viewURL(url, target, sourceRef);
        } else {
          functions.viewURL(url, target, w, h, allowResize, false);
        }
        message.complete(false, true, null);
      }
    };
    thread.start();
View Full Code Here

                    "sidebar." + entry.getId(),
                    "MainWindow.menu.view.configuration");

                mi.addListener(new MenuItemListener() {
                  public void selected(MenuItem menu, Object target) {
                    UIFunctions uif = UIFunctionsManager.getUIFunctions();

                    if (uif != null) {

                      for (String s : relevant_sections) {

                        uif.openView(UIFunctions.VIEW_CONFIG, s);
                      }
                    }
                  }
                });
View Full Code Here

TOP

Related Classes of com.aelitis.azureus.ui.UIFunctions

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.