Examples of MdiEntry


Examples of com.aelitis.azureus.ui.mdi.MdiEntry

      if (i > 0) {
        id = id.substring(i + 1);
      }
    }

    MdiEntry oldEntry = getEntry(id);
    if (oldEntry != null) {
      if (show) {
        showEntry(oldEntry);
      }
      return oldEntry;
View Full Code Here

Examples of com.aelitis.azureus.ui.mdi.MdiEntry

    entry.setSwtItem(cTabItem);
  }

  public String getUpdateUIName() {
    String name = "MDI";
    MdiEntry entry = getCurrentEntry();
    if (entry != null) {
      name += "-" + entry.getId();
    }
    return name;
  }
View Full Code Here

Examples of com.aelitis.azureus.ui.mdi.MdiEntry

            if (decodedMap.containsKey("tab")) {
              String tabID = MapUtils.getMapString(decodedMap, "tab", "");
              if (tabID.length() > 0) {
                // 3.2 TODO: Should we be checking for partial matches?
                MultipleDocumentInterface mdi = UIFunctionsManager.getUIFunctions().getMDI();
                MdiEntry entry = mdi.getCurrentEntry();
                if (entry != null) {
                  return entry.getId().equals(tabID);
                }
              }
            }

            return false;
View Full Code Here

Examples of com.aelitis.azureus.ui.mdi.MdiEntry

 

  public abstract static class SubsMenuItemListener implements MenuItemListener {
    public final void selected(MenuItem menu, Object target) {
      if (target instanceof MdiEntry) {
        MdiEntry info = (MdiEntry) target;
        Subscription subs = (Subscription) info.getDatasource();
       
        try {
          selected(info, subs);
        } catch (Throwable t) {
          Debug.out(t);
View Full Code Here

Examples of com.aelitis.azureus.ui.mdi.MdiEntry

          sidebarParentID = MultipleDocumentInterface.SIDEBAR_HEADER_PLUGINS;
        } else {
          System.err.println("Can't find parent " + sParentID + " for " + sViewID);
        }
       
        MdiEntry entry = mdi.createEntryFromEventListener(sidebarParentID, l, sViewID,
            true, dataSource);
        if (bSetFocus) {
          mdi.showEntryByID(sViewID);
        } else if (entry instanceof BaseMdiEntry) {
          // Some plugins (CVS Updater) want their view's composite initialized
View Full Code Here

Examples of com.aelitis.azureus.ui.mdi.MdiEntry

    if (mdi == null) {
      return;
    }
    MdiEntry[] sideBarEntries = mdi.getEntries();
    for (int i = 0; i < sideBarEntries.length; i++) {
      MdiEntry entry = sideBarEntries[i];
      String id = entry.getId();
      if (id != null && id.startsWith("DMDetails_")) {
        mdi.closeEntry(id);
      }
    }
View Full Code Here

Examples of com.aelitis.azureus.ui.mdi.MdiEntry

      return false;
    }

    MdiEntry[] sideBarEntries = mdi.getEntries();
    for (int i = 0; i < sideBarEntries.length; i++) {
      MdiEntry entry = sideBarEntries[i];
      String id = entry.getId();
      if (id != null && id.startsWith("DMDetails_")) {
        return true;
      }
    }
View Full Code Here

Examples of com.aelitis.azureus.ui.mdi.MdiEntry

    COConfigurationManager.setParameter("v3.Show Welcome", false);
   
    openURL();

    MultipleDocumentInterface mdi = UIFunctionsManager.getUIFunctions().getMDI();
    MdiEntry entry = mdi.getEntry(SideBar.SIDEBAR_SECTION_WELCOME);
    entry.addListener(new MdiCloseListener() {
      public void mdiEntryClosed(MdiEntry entry, boolean userClosed) {
        MultipleDocumentInterface mdi = UIFunctionsManager.getUIFunctions().getMDI();
        if (mdi != null) {
          mdi.showEntryByID(SideBar.SIDEBAR_SECTION_LIBRARY);
        }
View Full Code Here

Examples of com.aelitis.azureus.ui.mdi.MdiEntry

      System.out.println("URL is now " + url + " via "
          + Debug.getCompressedStackTrace());
    }

    MultipleDocumentInterface mdi = UIFunctionsManager.getUIFunctions().getMDI();
    MdiEntry currentEntry = mdi.getCurrentEntry();

    if (browserSkinObject != null && (forceSet || entry == currentEntry)) {
      browserSkinObject.setURL(url);
    }
  }
View Full Code Here

Examples of com.aelitis.azureus.ui.mdi.MdiEntry

      entryID = SideBar.SIDEBAR_SECTION_LIBRARY_UNOPENED;
    }

    if (entryID != null) {
      MultipleDocumentInterface mdi = UIFunctionsManager.getUIFunctions().getMDI();
      MdiEntry entry = mdi.getEntry(entryID);
      if (entry != null) {
        entry.setLogID(entryID + "-" + viewMode);
      }
    }

    SB_Transfers.triggerCountRefreshListeners();
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.