Package com.aelitis.azureus.ui.swt.mdi

Examples of com.aelitis.azureus.ui.swt.mdi.MultipleDocumentInterfaceSWT


  private static boolean DEBUG = Constants.IS_CVS_VERSION;

  public Object skinObjectInitialShow(final SWTSkinObject skinObject,
      Object params) {

    MultipleDocumentInterfaceSWT mdi = UIFunctionsManagerSWT.getUIFunctionsSWT().getMDISWT();
    if (mdi != null) {
      entry = mdi.getEntryFromSkinObject(skinObject);
      if (entry != null) {
        entryID = entry.getId();
      }
    }
View Full Code Here


  // @see com.aelitis.azureus.ui.swt.views.skin.SkinView#skinObjectShown(com.aelitis.azureus.ui.swt.skin.SWTSkinObject, java.lang.Object)
  public Object skinObjectShown(SWTSkinObject skinObject, Object params) {
    super.skinObjectShown(skinObject, params);

    MultipleDocumentInterfaceSWT mdi = UIFunctionsManagerSWT.getUIFunctionsSWT().getMDISWT();
    if (mdi != null) {
      MdiEntry entry = mdi.getEntryFromSkinObject(skinObject);
      if (entry != null) {
        entry.addToolbarEnabler(this);
      }
    }
   
View Full Code Here

    return null;
  }
 
  // @see com.aelitis.azureus.ui.swt.views.skin.SkinView#skinObjectHidden(com.aelitis.azureus.ui.swt.skin.SWTSkinObject, java.lang.Object)
  public Object skinObjectHidden(SWTSkinObject skinObject, Object params) {
    MultipleDocumentInterfaceSWT mdi = UIFunctionsManagerSWT.getUIFunctionsSWT().getMDISWT();
    if (mdi != null) {
      MdiEntry entry = mdi.getEntryFromSkinObject(skinObject);
      if (entry != null) {
        entry.removeToolbarEnabler( this );
      }
    }
View Full Code Here

  }

  private static void refreshBrowser(final String browserID) {
    Utils.execSWTThread(new AERunnable() {
      public void runSupport() {
        MultipleDocumentInterfaceSWT mdi = UIFunctionsManagerSWT.getUIFunctionsSWT().getMDISWT();

        BaseMdiEntry entry = (BaseMdiEntry) mdi.getEntrySWT(browserID);
        //MdiEntrySWT entry = mdi.getEntrySWT(browserID);  // Use when UIs merged
        SWTSkinObjectBrowser soBrowser = SWTSkinUtils.findBrowserSO(entry.getSkinObject());

        if (soBrowser != null) {
          soBrowser.refresh();
View Full Code Here

  private void createBrowseArea(SWTSkinObjectBrowser browserSkinObject) {
    this.browserSkinObject = browserSkinObject;
    browserSkinObject.getContext().addMessageListener(
        new MetaSearchListener(this));
   
    MultipleDocumentInterfaceSWT mdi = UIFunctionsManagerSWT.getUIFunctionsSWT().getMDISWT();
    if (mdi != null) {
      final MdiEntry entry = mdi.getEntryBySkinView(this);
      if (entry != null) {
        vitalityImage = entry.addVitalityImage("image.sidebar.vitality.dots");
        if ( vitalityImage != null ){
          vitalityImage.setVisible(false);
        }
View Full Code Here

   * @param toolBarItem
   *
   * @since 3.1.1.1
   */
  protected void activateViaSideBar(ToolBarItem toolBarItem) {
    MultipleDocumentInterfaceSWT mdi = UIFunctionsManagerSWT.getUIFunctionsSWT().getMDISWT();
    if (mdi != null) {
      MdiEntrySWT entry = mdi.getCurrentEntrySWT();
      if (entry.getIView() != null) {
        entry.getIView().itemActivated(toolBarItem.getId());
      }
    }
  }
View Full Code Here

    refresh_limiter.dispatch();
  }

  public void _refreshCoreToolBarItems() {
   
    MultipleDocumentInterfaceSWT mdi = UIFunctionsManagerSWT.getUIFunctionsSWT().getMDISWT();

    if (mdi != null) {
      ToolBarItem[] allToolBarItems = getAllToolBarItems();
      MdiEntrySWT entry = mdi.getCurrentEntrySWT();
      Map<String, Boolean> mapStates = new HashMap<String, Boolean>();
      if (entry != null) {
        ToolBarEnabler[] enablers = entry.getToolbarEnablers();
        for (ToolBarEnabler enabler : enablers) {
          enabler.refreshToolBar(mapStates);
View Full Code Here

      return;
    }
  }

  private boolean triggerIViewToolBar(String id) {
    MultipleDocumentInterfaceSWT mdi = UIFunctionsManagerSWT.getUIFunctionsSWT().getMDISWT();
    if (mdi != null) {
      MdiEntrySWT entry = mdi.getCurrentEntrySWT();
      ToolBarEnabler[] enablers = entry.getToolbarEnablers();
      for (ToolBarEnabler enabler : enablers) {
        if (enabler.toolBarItemActivated(id)) {
          return true;
        }
View Full Code Here

        {         
          initColumns( core );
        }
      });

    MultipleDocumentInterfaceSWT mdi = UIFunctionsManagerSWT.getUIFunctionsSWT().getMDISWT();
   
    if ( mdi != null ){
     
      mdi_entry = mdi.getCurrentEntrySWT();
     
      mdi_entry.addToolbarEnabler( this );
     
      device = (DeviceOfflineDownloader)mdi_entry.getDatasource();
    }
View Full Code Here

    transcode_manager = device_manager.getTranscodeManager();

    transcode_queue = transcode_manager.getQueue();

    MultipleDocumentInterfaceSWT mdi = UIFunctionsManagerSWT.getUIFunctionsSWT().getMDISWT();
    if (mdi != null) {
      mdiEntry = mdi.getCurrentEntrySWT();
      mdiEntry.addToolbarEnabler(this);
      device = (Device) mdiEntry.getDatasource();
    }

    if (device instanceof TranscodeTarget) {
View Full Code Here

TOP

Related Classes of com.aelitis.azureus.ui.swt.mdi.MultipleDocumentInterfaceSWT

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.