Examples of MdiSWTMenuHackListener


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

 
  // @see com.aelitis.azureus.ui.common.viewtitleinfo.ViewTitleInfo2#titleInfoLinked(com.aelitis.azureus.ui.mdi.MultipleDocumentInterface, com.aelitis.azureus.ui.mdi.MdiEntry)
  public void titleInfoLinked(MultipleDocumentInterface mdi, MdiEntry mdiEntry) {
    if (mdiEntry instanceof MdiEntrySWT) {
      ((MdiEntrySWT) mdiEntry).addListener(new MdiSWTMenuHackListener() {
        public void menuWillBeShown(MdiEntry entry, Menu menuTree) {
          MenuFactory.buildTorrentMenu(menuTree);

          TableView<?> tv = SelectedContentManager.getCurrentlySelectedTableView();
          menuTree.setData("TableView", tv);
View Full Code Here

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

      entry.setImageLeftID("image.sidebar.library");
    }

    if (entry instanceof SideBarEntrySWT) {
      final SideBarEntrySWT entrySWT = (SideBarEntrySWT) entry;
      entrySWT.addListener(new MdiSWTMenuHackListener() {
        public void menuWillBeShown(MdiEntry entry, Menu menuTree) {
          CategoryUIUtils.createMenuItems(menuTree, category);
        }
      });
    }
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.