Package com.aelitis.azureus.ui.swt

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


                            MessageText.getString( "ConfigView.section.security.restart.msg" ));
                        mb.setParent(parent.getShell());
                        mb.open(null);
 
                       
                        UIFunctionsSWT uiFunctions = UIFunctionsManagerSWT.getUIFunctionsSWT();
                       
                          if ( uiFunctions != null ){
                           
                            uiFunctions.dispose(true, false);
                          }
                      }
                    }catch( Throwable e ){
                   
                      MessageBoxShell mb = new MessageBoxShell
View Full Code Here


  private int yPressed;
  private boolean moving;

  public TrayWindow() {
    this.managers = new ArrayList();
    UIFunctionsSWT uif = UIFunctionsManagerSWT.getUIFunctionsSWT();
    Shell mainShell = uif == null ? Utils.findAnyShell() : uif.getMainShell();
    this.display = mainShell.getDisplay();
    minimized = ShellFactory.createShell(mainShell, SWT.ON_TOP);
    minimized.setText("Vuze"); //$NON-NLS-1$
    label = new Label(minimized, SWT.NULL);
    ImageLoader.getInstance().setLabelImage(label, "tray");
View Full Code Here

  }

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

  public static MenuItem addViewToolbarMenuItem(Menu menu) {
    final MenuItem item = addMenuItem(menu, SWT.CHECK, MENU_ID_TOOLBAR,
        new Listener() {
          public void handleEvent(Event e) {
            UIFunctionsSWT uiFunctions = getUIFunctionSWT();
            if (null != uiFunctions) {
              IMainWindow mainWindow = uiFunctions.getMainWindow();
              boolean isToolbarVisible = mainWindow.isVisible(IMainWindow.WINDOW_ELEMENT_TOOLBAR);
              mainWindow.setVisible(IMainWindow.WINDOW_ELEMENT_TOOLBAR,
                  !isToolbarVisible);
            }
          }
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

    menuItem.setData(KEY_MENU_ID, localizationKey);
    return menuItem;
  }

  private static UIFunctionsSWT getUIFunctionSWT() {
    UIFunctionsSWT uiFunctions = UIFunctionsManagerSWT.getUIFunctionsSWT();
    if (null != uiFunctions) {
      return uiFunctions;
    }
    throw new IllegalStateException(
        "No instance of UIFunctionsSWT found; the UIFunctionsManager might not have been initialized properly");
View Full Code Here

    shell    = null;
    configView  = null;
  }

  private Shell getMainShell() {
    UIFunctionsSWT uiFunctions = UIFunctionsManagerSWT.getUIFunctionsSWT();
    if (null != uiFunctions) {
      return uiFunctions.getMainShell();
    }

    throw new IllegalStateException(
        "No instance of UIFunctionsSWT found; the UIFunctionsManager might not have been initialized properly");
View Full Code Here

  }
 
  private void close() {
    shell.dispose();
    if(Utils.isCarbon) {
      UIFunctionsSWT uiFunctions = UIFunctionsManagerSWT.getUIFunctionsSWT();
      if (uiFunctions != null) {
        Shell mainShell = uiFunctions.getMainShell();
        if (mainShell != null) {
          mainShell.setMinimized(true);
          mainShell.setVisible(true);
        }
      }
View Full Code Here

        if (as != null) {
          as.setVisible(true);
          as.forceActive();
          return;
        }
        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 dispose() {
    Utils.execSWTThread(new AERunnable() {
      public void runSupport() {
        updateWindow.dispose();
        UIFunctionsSWT functionsSWT = UIFunctionsManagerSWT.getUIFunctionsSWT();
        if (functionsSWT != null) {
          MainStatusBar mainStatusBar = functionsSWT.getMainStatusBar();
          if (mainStatusBar != null) {
            mainStatusBar.setUpdateNeeded(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.