Package com.aelitis.azureus.ui.swt

Examples of com.aelitis.azureus.ui.swt.UIFunctionsSWT.bringToFront()


  public void restore() {
    if(!COConfigurationManager.getBooleanParameter("Show Download Basket"))
      minimized.setVisible(false);
    UIFunctionsSWT functionsSWT = UIFunctionsManagerSWT.getUIFunctionsSWT();
    if (functionsSWT != null) {
      functionsSWT.bringToFront();
    }
    moving = false;
  }

  // @see com.aelitis.azureus.ui.common.updater.UIUpdatable#updateUI()
View Full Code Here


  public static MenuItem addCheckUpdateMenuItem(final Menu menu) {
    return addMenuItem(menu, MENU_ID_UPDATE_CHECK, new ListenerNeedingCoreRunning() {
      public void handleEvent(AzureusCore core, Event e) {
        UIFunctionsSWT uiFunctions = UIFunctionsManagerSWT.getUIFunctionsSWT();
        if (uiFunctions != null) {
          uiFunctions.bringToFront();
        }
        UpdateMonitor.getSingleton(core).performCheck(true, false, false,
            new UpdateCheckInstanceListener() {
              public void cancelled(UpdateCheckInstance instance) {
              }
View Full Code Here

        }
        UIFunctionsSWT uif = UIFunctionsManagerSWT.getUIFunctionsSWT();
        if (uif != null) {
          Shell mainShell = uif.getMainShell();
          if (mainShell == null || !mainShell.isVisible() || mainShell.getMinimized()) {
            uif.bringToFront(false);
          }
        }
      }
    };
    display.addListener(SWT.Activate, lShowMainWindow);
View Full Code Here

    public void open() {
      UIFunctionsSWT uiFunctions = UIFunctionsManagerSWT.getUIFunctionsSWT();
      if (uiFunctions != null) {
        Shell mainShell = uiFunctions.getMainShell();
        if (mainShell != null && mainShell.getMinimized()) {
          uiFunctions.bringToFront();
        }
      }
     
      Shell firstShellWithStyle = Utils.findFirstShellWithStyle(SWT.APPLICATION_MODAL);
      if (firstShellWithStyle != null && firstShellWithStyle != this) {
View Full Code Here

   * @since 3.0.5.3
   */
  public static void checkForUpdates() {
    UIFunctionsSWT uiFunctions = UIFunctionsManagerSWT.getUIFunctionsSWT();
    if (uiFunctions != null) {
      uiFunctions.bringToFront();
    }
    AzureusCoreFactory.addCoreRunningListener(new AzureusCoreRunningListener() {
      public void azureusCoreRunning(AzureusCore core) {
        UpdateMonitor.getSingleton(core).performCheck(true, false, false, null);
      }
View Full Code Here

      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) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.