Class MainMenuV2

  • All Implemented Interfaces:
    IMainMenu

    public class MainMenuV2
    extends java.lang.Object
    implements IMainMenu
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.eclipse.swt.widgets.Menu menuBar  
    • Constructor Summary

      Constructors 
      Constructor Description
      MainMenuV2​(org.eclipse.swt.widgets.Shell shell)
      Creates the main menu bar and attaches it to the given shell
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void addCommunityMenu​(org.eclipse.swt.widgets.Shell parent)  
      private void addFileMenu()
      Creates the File menu and all its children
      private void addPluginsMenu​(org.eclipse.swt.widgets.Shell parent)
      Creates the Plugins menu and all its children
      private void addToolsMenu()
      Creates the Tools menu and all its children
      private void addTorrentMenu​(org.eclipse.swt.widgets.Shell parent)
      Creates the Torrent menu and all its children
      private void addTransferMenu()
      Creates the Transfer menu and all its children
      private void addV2HelpMenu​(org.eclipse.swt.widgets.Shell parent)
      Creates the Help menu and all its children
      private void addViewMenu​(org.eclipse.swt.widgets.Shell parent)
      Creates the View menu and all its children
      private void addWindowMenu​(org.eclipse.swt.widgets.Shell parent)
      Creates the Window menu and all its children
      protected void buildSimpleViewMenu​(org.eclipse.swt.widgets.Menu viewMenu)  
      private void createMenus​(org.eclipse.swt.widgets.Shell parent)  
      org.eclipse.swt.widgets.Menu getMenu​(java.lang.String id)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • menuBar

        private org.eclipse.swt.widgets.Menu menuBar
    • Constructor Detail

      • MainMenuV2

        public MainMenuV2​(org.eclipse.swt.widgets.Shell shell)

        Creates the main menu bar and attaches it to the given shell

        Parameters:
        shell - A shell
    • Method Detail

      • createMenus

        private void createMenus​(org.eclipse.swt.widgets.Shell parent)
      • addWindowMenu

        private void addWindowMenu​(org.eclipse.swt.widgets.Shell parent)
        Creates the Window menu and all its children
        Parameters:
        parent -
      • addFileMenu

        private void addFileMenu()
        Creates the File menu and all its children
      • addTransferMenu

        private void addTransferMenu()
        Creates the Transfer menu and all its children
      • addViewMenu

        private void addViewMenu​(org.eclipse.swt.widgets.Shell parent)
        Creates the View menu and all its children
        Parameters:
        parent -
      • buildSimpleViewMenu

        protected void buildSimpleViewMenu​(org.eclipse.swt.widgets.Menu viewMenu)
      • addTorrentMenu

        private void addTorrentMenu​(org.eclipse.swt.widgets.Shell parent)
        Creates the Torrent menu and all its children
        Parameters:
        parent -
      • addToolsMenu

        private void addToolsMenu()
        Creates the Tools menu and all its children
        Parameters:
        parent -
      • addPluginsMenu

        private void addPluginsMenu​(org.eclipse.swt.widgets.Shell parent)
        Creates the Plugins menu and all its children
        Parameters:
        parent -
      • addCommunityMenu

        private void addCommunityMenu​(org.eclipse.swt.widgets.Shell parent)
      • addV2HelpMenu

        private void addV2HelpMenu​(org.eclipse.swt.widgets.Shell parent)
        Creates the Help menu and all its children
        Parameters:
        parent -
      • getMenu

        public org.eclipse.swt.widgets.Menu getMenu​(java.lang.String id)
        Specified by:
        getMenu in interface IMainMenu