Package com.aelitis.azureus.ui.swt

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


      ttl += diff;
      averageTimes.put(key, average);
    }
    //System.out.println(SystemTime.getCurrentTime() + "] Refresh " + ttl + "ms");

    UIFunctionsSWT uiFunctionsSWT = UIFunctionsManagerSWT.getUIFunctionsSWT();
    MainStatusBar mainStatusBar = uiFunctionsSWT == null ? null : uiFunctionsSWT.getMainStatusBar();
    if (mainStatusBar != null && mainStatusBar.isMouseOver()) {
      StringBuffer sb = new StringBuffer();
      for (Iterator iter = averageTimes.keySet().iterator(); iter.hasNext();) {
        Object key = iter.next();
        Object[] average = (Object[]) averageTimes.get(key);
View Full Code Here


      }

      final String sPrefix = "v3.mb.openFile.";
     

      UIFunctionsSWT functionsSWT = UIFunctionsManagerSWT.getUIFunctionsSWT();
      if (functionsSWT == null) {
        return;
      }
     
      final Program program = Program.findProgram(ext);
View Full Code Here

  * @param dm
  *
  * @since 3.0.0.7
  */
  private static void handleNoFileExists(final DownloadManager dm) {
    final UIFunctionsSWT functionsSWT = UIFunctionsManagerSWT.getUIFunctionsSWT();
    if (functionsSWT == null) {
      return;
    }
    ManagerUtils.start(dm);

View Full Code Here

      if (soHeader != null) {
        soHeader.setVisible(hasFullLicence);
      }
      Utils.execSWTThread(new AERunnable() {
        public void runSupport() {
          UIFunctionsSWT uif = UIFunctionsManagerSWT.getUIFunctionsSWT();
          uif.getMainShell().setText(hasFullLicence ? "Vuze Plus" : "Vuze");
        }
      });
    }

    UIFunctions uif = UIFunctionsManager.getUIFunctions();
    MultipleDocumentInterface mdi = uif.getMDI();
    if (mdi != null) {
      MdiEntry entry = mdi.getEntry(MultipleDocumentInterface.SIDEBAR_SECTION_PLUS);
      if (entry != null) {
        entry.setTitleID(hasFullLicence ? "mdi.entry.plus.full"
            : "mdi.entry.plus.free");
View Full Code Here

                DLReferals.DL_REFERAL_LAUNCH, false, true);
           
          } else if (!UrlFilter.getInstance().urlCanRPC(hitUrl.url)) {
            Utils.launch(hitUrl.url);
          } else {
            UIFunctionsSWT uif = UIFunctionsManagerSWT.getUIFunctionsSWT();
            if (uif != null) {
              String target = hitUrl.target;
              if (target == null) {
                target = ContentNetworkUtils.getTarget(entry.getContentNetwork());
              }
              uif.viewURL(hitUrl.url, target, "column.activity.action");
              return;
            }
          }
        }
        Object ds = event.cell.getDataSource();
View Full Code Here

          cn = ConstantsVuze.getDefaultContentNetwork();
        }
        url = cn.appendURLSuffix(url, false, true);
      }

      UIFunctionsSWT uiFunctions = (UIFunctionsSWT) UIFunctionsManager.getUIFunctions();
      if (uiFunctions != null) {
        if (!COConfigurationManager.getBooleanParameter("add_torrents_silently")) {
          if (bringToFront) {
            uiFunctions.bringToFront();
          }
        }

        Shell shell = uiFunctions.getMainShell();
        if (shell != null) {
          new FileDownloadWindow(shell, url, dlInfo.getReferer(),
              dlInfo.getRequestProperties(),
              new TorrentDownloaderCallBackInterface() {
View Full Code Here

            || hitUrl.url.startsWith("/") || hitUrl.url.startsWith("#");
        if (event.eventType == TableCellMouseEvent.EVENT_MOUSEDOWN) {
          if (!ourUrl) {
            Utils.launch(hitUrl.url);
          } else {
            UIFunctionsSWT uif = UIFunctionsManagerSWT.getUIFunctionsSWT();
            if (uif != null) {
              String target = hitUrl.target;
              if (target == null) {
                target = ContentNetworkUtils.getTarget(entry.getContentNetwork());
              }
              uif.viewURL(hitUrl.url, target, "column.activity.text");
              return;
            }
          }
        }
View Full Code Here

      }
    });
   
    Rectangle bounds = null;
    try {
      UIFunctionsSWT uiFunctions = UIFunctionsManagerSWT.getUIFunctionsSWT();
      if (uiFunctions != null) {
        Shell mainShell = uiFunctions.getMainShell();
        bounds = mainShell.getMonitor().getClientArea();
      }
    } catch (Exception e) {
    }
    if (bounds == null) {
View Full Code Here

TOP

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

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.