Examples of MdiEntrySWT


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

      TableView tv = SelectedContentManager.getCurrentlySelectedTableView();
      boolean hasRealDM = tv != null;
      if (!hasRealDM) {
        MultipleDocumentInterfaceSWT mdi = UIFunctionsManagerSWT.getUIFunctionsSWT().getMDISWT();
        if (mdi != null) {
          MdiEntrySWT entry = mdi.getCurrentEntrySWT();
          if (entry != null) {
            if (entry.getDatasource() instanceof DownloadManager) {
              hasRealDM = true;
            } else if ((entry.getIView() instanceof UIPluginView)
                && (((UIPluginView) entry.getIView()).getDataSource() instanceof DownloadManager)) {
              hasRealDM = true;
            }
          }
        }
      }
View Full Code Here

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

  protected void refreshView() {
    String key = "Subscription_" + ByteFormatter.encodeString(subs.getPublicKey());
    MultipleDocumentInterfaceSWT mdi = UIFunctionsManagerSWT.getUIFunctionsSWT().getMDISWT();
    if (mdi != null) {
      MdiEntrySWT entry = mdi.getEntrySWT(key);
      if (entry != null) {
        IView view = entry.getIView();
        if (view instanceof SubscriptionView) {
          SubscriptionView subsView = (SubscriptionView) view;
          subsView.updateBrowser( false );
        }
      }
View Full Code Here

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

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

    MultipleDocumentInterfaceSWT mdi = UIFunctionsManagerSWT.getUIFunctionsSWT().getMDISWT();
    if (mdi != null) {
      MdiEntrySWT entry = mdi.getEntryFromSkinObject(skinObject);
      if (entry != null) {
        device = (DeviceMediaRenderer) entry.getDatasource();
      }
    }
   
    parent = (Composite) skinObject.getControl();
View Full Code Here

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

  }

  public Object skinObjectShown(SWTSkinObject skinObject, Object params) {
    MultipleDocumentInterfaceSWT mdi = UIFunctionsManagerSWT.getUIFunctionsSWT().getMDISWT();
    if (mdi != null) {
      MdiEntrySWT entry = mdi.getCurrentEntrySWT();
      entry.addToolbarEnabler(this);
    }
    return super.skinObjectShown(skinObject, params);
  }
View Full Code Here

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

   * @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

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

   
    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

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

  }

  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
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.