org.gudy.azureus2.ui.swt.mainwindow
Class MenuFactory

java.lang.Object
  extended by org.gudy.azureus2.ui.swt.mainwindow.MenuFactory
All Implemented Interfaces:
IMenuConstants

public class MenuFactory
extends Object
implements IMenuConstants


Field Summary
 
Fields inherited from interface org.gudy.azureus2.ui.swt.mainwindow.IMenuConstants
FOR_AZ2, FOR_AZ3, KEY_ENABLEMENT, KEY_MENU_ID, MENU_ID_ABOUT, MENU_ID_ADVANCED, MENU_ID_ADVANCED_TOOLS, MENU_ID_ALL_PEERS, MENU_ID_BETA_PROG, MENU_ID_BETA_PROG_BUG, MENU_ID_CLIENT_STATS, MENU_ID_CLOSE_ALL_DETAIL, MENU_ID_CLOSE_ALL_DL_BARS, MENU_ID_CLOSE_TAB, MENU_ID_COMMUNITY, MENU_ID_COMMUNITY_BLOG, MENU_ID_COMMUNITY_CHAT, MENU_ID_COMMUNITY_FORUMS, MENU_ID_COMMUNITY_WIKI, MENU_ID_CONFIGURE, MENU_ID_CONSOLE, MENU_ID_CREATE, MENU_ID_DEBUG_HELP, MENU_ID_DETAILED_LIST, MENU_ID_DEVICEMANAGER, MENU_ID_DONATE, MENU_ID_EXIT, MENU_ID_EXPORT, MENU_ID_FILE, MENU_ID_HEALTH, MENU_ID_HELP, MENU_ID_HELP_SUPPORT, MENU_ID_IMPORT, MENU_ID_IP_FILTER, MENU_ID_LOG_VIEWS, MENU_ID_MENU_BAR, MENU_ID_MY_SHARES, MENU_ID_MY_TORRENTS, MENU_ID_MY_TRACKERS, MENU_ID_NAT_TEST, MENU_ID_NET_STATUS, MENU_ID_OPEN, MENU_ID_OPEN_TORRENT, MENU_ID_OPEN_TORRENT_FOR_TRACKING, MENU_ID_OPEN_URI, MENU_ID_OPEN_VUZE_FILE, MENU_ID_OPTIONS, MENU_ID_PAIRING, MENU_ID_PAUSE_TRANSFERS, MENU_ID_PAUSE_TRANSFERS_FOR, MENU_ID_PLUGINS, MENU_ID_PLUGINS_HELP, MENU_ID_PLUGINS_INSTALL, MENU_ID_PLUGINS_UNINSTALL, MENU_ID_QUICK_VIEW, MENU_ID_RELEASE_NOTES, MENU_ID_RESTART, MENU_ID_RESUME_TRANSFERS, MENU_ID_SEARCH_BAR, MENU_ID_SHARE, MENU_ID_SHARE_DIR, MENU_ID_SHARE_DIR_CONTENT, MENU_ID_SHARE_DIR_CONTENT_RECURSE, MENU_ID_SHARE_FILE, MENU_ID_SPEED_LIMITS, MENU_ID_SPEED_TEST, MENU_ID_START_ALL_TRANSFERS, MENU_ID_STATS, MENU_ID_STOP_ALL_TRANSFERS, MENU_ID_SUBSCRIPTIONS, MENU_ID_TOOLBAR, MENU_ID_TOOLS, MENU_ID_TORRENT, MENU_ID_TRANSFER_BAR, MENU_ID_TRANSFERS, MENU_ID_UPDATE_CHECK, MENU_ID_VIEW, MENU_ID_VOTE, MENU_ID_WHATS_NEW, MENU_ID_WINDOW, MENU_ID_WINDOW_ALL_TO_FRONT, MENU_ID_WINDOW_CLOSE, MENU_ID_WINDOW_MINIMIZE, MENU_ID_WINDOW_ZOOM, MENU_ID_WINDOW_ZOOM_MAXIMIZE, MENU_ID_WINDOW_ZOOM_RESTORE
 
Constructor Summary
MenuFactory()
           
 
Method Summary
static org.eclipse.swt.widgets.MenuItem addAboutMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addAdvancedHelpMenuItem(org.eclipse.swt.widgets.Menu menuParent)
           
static void addAlertsMenu(org.eclipse.swt.widgets.Menu menu, boolean createSubmenu, DownloadManager[] dms)
           
static void addAlertsMenu(org.eclipse.swt.widgets.Menu menu, DownloadManager dm, DiskManagerFileInfo[] files)
           
static org.eclipse.swt.widgets.MenuItem addAllPeersMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static void addBetaMenuItem(org.eclipse.swt.widgets.Menu menuParent)
           
static org.eclipse.swt.widgets.MenuItem addBlockedIPsMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addBringAllToFrontMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addCheckUpdateMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addClientStatsMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addCloseDetailsMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addCloseDownloadBarsToMenu(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addCloseTabMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addCloseWindowMenuItem(org.eclipse.swt.widgets.Menu menuParent)
           
static org.eclipse.swt.widgets.MenuItem addConfigWizardMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addConsoleMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addCreateMenuItem(org.eclipse.swt.widgets.Menu menuParent)
           
static org.eclipse.swt.widgets.MenuItem addDebugHelpMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addDeviceManagerMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addDonationMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addExitMenuItem(org.eclipse.swt.widgets.Menu menuParent)
           
static org.eclipse.swt.widgets.MenuItem addExportMenuItem(org.eclipse.swt.widgets.Menu menuParent)
           
static org.eclipse.swt.widgets.MenuItem addGetPluginsMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addHealthMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addHelpSupportMenuItem(org.eclipse.swt.widgets.Menu menu, String support_url)
           
static org.eclipse.swt.widgets.MenuItem addImportMenuItem(org.eclipse.swt.widgets.Menu menuParent)
           
static org.eclipse.swt.widgets.MenuItem addLabelMenuItem(org.eclipse.swt.widgets.Menu menu, String localizationKey)
          Creates a menu item that is simply a label; it does nothing is selected
static org.eclipse.swt.widgets.MenuItem addLogsViewMenuItem(org.eclipse.swt.widgets.Menu menuParent)
           
static org.eclipse.swt.widgets.MenuItem addMenuItem(org.eclipse.swt.widgets.Menu menu, int style, int index, String localizationKey, org.eclipse.swt.widgets.Listener selListener)
           
static org.eclipse.swt.widgets.MenuItem addMenuItem(org.eclipse.swt.widgets.Menu menu, int style, String localizationKey, org.eclipse.swt.widgets.Listener selListener)
           
static org.eclipse.swt.widgets.MenuItem addMenuItem(org.eclipse.swt.widgets.Menu menu, String localizationKey, org.eclipse.swt.widgets.Listener selListener)
           
static org.eclipse.swt.widgets.MenuItem addMenuItem(org.eclipse.swt.widgets.Menu menu, String localizationKey, org.eclipse.swt.widgets.Listener selListener, int style)
           
static org.eclipse.swt.widgets.MenuItem addMinimizeWindowMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addMySharesMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addMyTorrentsMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addMyTrackerMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addNatTestMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addNetStatusMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addOpenTorrentForTrackingMenuItem(org.eclipse.swt.widgets.Menu menuParent)
           
static org.eclipse.swt.widgets.MenuItem addOpenTorrentMenuItem(org.eclipse.swt.widgets.Menu menuParent)
           
static org.eclipse.swt.widgets.MenuItem addOpenURIMenuItem(org.eclipse.swt.widgets.Menu menuParent)
           
static org.eclipse.swt.widgets.MenuItem addOpenVuzeFileMenuItem(org.eclipse.swt.widgets.Menu menuParent)
           
static org.eclipse.swt.widgets.MenuItem addOptionsMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static void addPairingMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addPauseForMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addPauseMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addPluginInstallMenuItem(org.eclipse.swt.widgets.Menu menuParent)
           
static org.eclipse.swt.widgets.MenuItem addPluginUnInstallMenuItem(org.eclipse.swt.widgets.Menu menuParent)
           
static org.eclipse.swt.widgets.MenuItem addReleaseNotesMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addRestartMenuItem(org.eclipse.swt.widgets.Menu menuParent)
           
static org.eclipse.swt.widgets.MenuItem addResumeMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addSearchMenuItem(org.eclipse.swt.widgets.Menu menuParent)
           
static org.eclipse.swt.widgets.MenuItem addSeparatorMenuItem(org.eclipse.swt.widgets.Menu menuParent)
           
static org.eclipse.swt.widgets.MenuItem addShareFileMenuItem(org.eclipse.swt.widgets.Menu menuParent)
           
static org.eclipse.swt.widgets.MenuItem addShareFolderContentMenuItem(org.eclipse.swt.widgets.Menu menuParent)
           
static org.eclipse.swt.widgets.MenuItem addShareFolderContentRecursiveMenuItem(org.eclipse.swt.widgets.Menu menuParent)
           
static org.eclipse.swt.widgets.MenuItem addShareFolderMenuItem(org.eclipse.swt.widgets.Menu menuParent)
           
static org.eclipse.swt.widgets.MenuItem addSpeedLimitsToMenu(org.eclipse.swt.widgets.Menu menuParent)
           
static org.eclipse.swt.widgets.MenuItem addSpeedTestMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addStartAllMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addStatisticsMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addStopAllMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addSubscriptionMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addTransferBarToMenu(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addViewToolbarMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addVoteMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addWhatsNewMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addWikiMenuItem(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem addZoomWindowMenuItem(org.eclipse.swt.widgets.Menu menuParent)
           
static void appendWindowMenuItems(org.eclipse.swt.widgets.Menu menuParent)
          Appends the list of opened interactive windows to the bottom of the specified shell menu
static void buildTorrentMenu(org.eclipse.swt.widgets.Menu menu)
           
static org.eclipse.swt.widgets.MenuItem createAdvancedMenuItem(org.eclipse.swt.widgets.Menu menuParent)
           
static org.eclipse.swt.widgets.MenuItem createFileMenuItem(org.eclipse.swt.widgets.Menu menuParent)
           
static org.eclipse.swt.widgets.MenuItem createHelpMenuItem(org.eclipse.swt.widgets.Menu menuParent)
           
static org.eclipse.swt.widgets.MenuItem createOpenMenuItem(org.eclipse.swt.widgets.Menu menuParent)
           
static org.eclipse.swt.widgets.MenuItem createPluginsMenuItem(org.eclipse.swt.widgets.Menu menuParent, boolean includeGetPluginsMenu)
          Creates the Plugins menu item and all it's children
static org.eclipse.swt.widgets.MenuItem createShareMenuItem(org.eclipse.swt.widgets.Menu menuParent)
           
static org.eclipse.swt.widgets.MenuItem createToolsMenuItem(org.eclipse.swt.widgets.Menu menuParent)
           
static org.eclipse.swt.widgets.MenuItem createTopLevelMenuItem(org.eclipse.swt.widgets.Menu menuParent, String localizationKey)
           
static org.eclipse.swt.widgets.Menu createTorrentMenuItem(org.eclipse.swt.widgets.Menu menuParent)
           
static org.eclipse.swt.widgets.MenuItem createTransfersMenuItem(org.eclipse.swt.widgets.Menu menuParent)
           
static org.eclipse.swt.widgets.MenuItem createViewMenuItem(org.eclipse.swt.widgets.Menu menuParent)
           
static org.eclipse.swt.widgets.MenuItem createWindowMenuItem(org.eclipse.swt.widgets.Menu menuParent)
           
static org.eclipse.swt.widgets.Menu findMenu(org.eclipse.swt.widgets.Menu menuToStartWith, String idToMatch)
          Find and return the menu with the given id starting from the given menu
static org.eclipse.swt.widgets.MenuItem findMenuItem(org.eclipse.swt.widgets.Menu menuToStartWith, String idToMatch)
          Find and return the menu item with the given id starting from the given menu
static org.eclipse.swt.widgets.MenuItem findMenuItem(org.eclipse.swt.widgets.Menu menuToStartWith, String idToMatch, boolean deep)
           
static int getEnablementKeys(org.eclipse.swt.widgets.Widget widget)
           
static boolean isEnabledForCurrentMode(org.eclipse.swt.widgets.Widget widget)
          Returns whether the given widget should be enabled for the current mode; current mode can be az2, az3, or az3 advanced.
static void performOneTimeDisable(org.eclipse.swt.widgets.MenuItem item, boolean affectsChildMenuItems)
           
static boolean setEnablement(org.eclipse.swt.widgets.Widget widget)
          Sets whether the given widget is enabled or not based on the value of the KEY_ENABLEMENT object data set into the given widget.
static void setEnablementKeys(org.eclipse.swt.widgets.Widget widget, int keys)
           
static void showText(String title, String message, List<String> lines)
           
static void updateEnabledStates(org.eclipse.swt.widgets.Menu menuToStartWith)
          Updates the enabled state of the given menu and all its applicable children
static void updateMenuText(Object menu)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MenuFactory

public MenuFactory()
Method Detail

createFileMenuItem

public static org.eclipse.swt.widgets.MenuItem createFileMenuItem(org.eclipse.swt.widgets.Menu menuParent)

createTransfersMenuItem

public static org.eclipse.swt.widgets.MenuItem createTransfersMenuItem(org.eclipse.swt.widgets.Menu menuParent)

createViewMenuItem

public static org.eclipse.swt.widgets.MenuItem createViewMenuItem(org.eclipse.swt.widgets.Menu menuParent)

createAdvancedMenuItem

public static org.eclipse.swt.widgets.MenuItem createAdvancedMenuItem(org.eclipse.swt.widgets.Menu menuParent)

createTorrentMenuItem

public static org.eclipse.swt.widgets.Menu createTorrentMenuItem(org.eclipse.swt.widgets.Menu menuParent)

buildTorrentMenu

public static void buildTorrentMenu(org.eclipse.swt.widgets.Menu menu)

createToolsMenuItem

public static org.eclipse.swt.widgets.MenuItem createToolsMenuItem(org.eclipse.swt.widgets.Menu menuParent)

createPluginsMenuItem

public static org.eclipse.swt.widgets.MenuItem createPluginsMenuItem(org.eclipse.swt.widgets.Menu menuParent,
                                                                     boolean includeGetPluginsMenu)
Creates the Plugins menu item and all it's children

Parameters:
menuParent -
includeGetPluginsMenu - if true then also include a menu item for getting new plugins
Returns:

createWindowMenuItem

public static org.eclipse.swt.widgets.MenuItem createWindowMenuItem(org.eclipse.swt.widgets.Menu menuParent)

createHelpMenuItem

public static org.eclipse.swt.widgets.MenuItem createHelpMenuItem(org.eclipse.swt.widgets.Menu menuParent)

addCreateMenuItem

public static org.eclipse.swt.widgets.MenuItem addCreateMenuItem(org.eclipse.swt.widgets.Menu menuParent)

createOpenMenuItem

public static org.eclipse.swt.widgets.MenuItem createOpenMenuItem(org.eclipse.swt.widgets.Menu menuParent)

addLogsViewMenuItem

public static org.eclipse.swt.widgets.MenuItem addLogsViewMenuItem(org.eclipse.swt.widgets.Menu menuParent)

addOpenTorrentMenuItem

public static org.eclipse.swt.widgets.MenuItem addOpenTorrentMenuItem(org.eclipse.swt.widgets.Menu menuParent)

addOpenURIMenuItem

public static org.eclipse.swt.widgets.MenuItem addOpenURIMenuItem(org.eclipse.swt.widgets.Menu menuParent)

addOpenTorrentForTrackingMenuItem

public static org.eclipse.swt.widgets.MenuItem addOpenTorrentForTrackingMenuItem(org.eclipse.swt.widgets.Menu menuParent)

addSearchMenuItem

public static org.eclipse.swt.widgets.MenuItem addSearchMenuItem(org.eclipse.swt.widgets.Menu menuParent)

addOpenVuzeFileMenuItem

public static org.eclipse.swt.widgets.MenuItem addOpenVuzeFileMenuItem(org.eclipse.swt.widgets.Menu menuParent)

createShareMenuItem

public static org.eclipse.swt.widgets.MenuItem createShareMenuItem(org.eclipse.swt.widgets.Menu menuParent)

addShareFileMenuItem

public static org.eclipse.swt.widgets.MenuItem addShareFileMenuItem(org.eclipse.swt.widgets.Menu menuParent)

addShareFolderMenuItem

public static org.eclipse.swt.widgets.MenuItem addShareFolderMenuItem(org.eclipse.swt.widgets.Menu menuParent)

addShareFolderContentMenuItem

public static org.eclipse.swt.widgets.MenuItem addShareFolderContentMenuItem(org.eclipse.swt.widgets.Menu menuParent)

addShareFolderContentRecursiveMenuItem

public static org.eclipse.swt.widgets.MenuItem addShareFolderContentRecursiveMenuItem(org.eclipse.swt.widgets.Menu menuParent)

addImportMenuItem

public static org.eclipse.swt.widgets.MenuItem addImportMenuItem(org.eclipse.swt.widgets.Menu menuParent)

addExportMenuItem

public static org.eclipse.swt.widgets.MenuItem addExportMenuItem(org.eclipse.swt.widgets.Menu menuParent)

addCloseWindowMenuItem

public static org.eclipse.swt.widgets.MenuItem addCloseWindowMenuItem(org.eclipse.swt.widgets.Menu menuParent)

addCloseTabMenuItem

public static org.eclipse.swt.widgets.MenuItem addCloseTabMenuItem(org.eclipse.swt.widgets.Menu menu)

addCloseDetailsMenuItem

public static org.eclipse.swt.widgets.MenuItem addCloseDetailsMenuItem(org.eclipse.swt.widgets.Menu menu)

addCloseDownloadBarsToMenu

public static org.eclipse.swt.widgets.MenuItem addCloseDownloadBarsToMenu(org.eclipse.swt.widgets.Menu menu)

addRestartMenuItem

public static org.eclipse.swt.widgets.MenuItem addRestartMenuItem(org.eclipse.swt.widgets.Menu menuParent)

addExitMenuItem

public static org.eclipse.swt.widgets.MenuItem addExitMenuItem(org.eclipse.swt.widgets.Menu menuParent)

addStartAllMenuItem

public static org.eclipse.swt.widgets.MenuItem addStartAllMenuItem(org.eclipse.swt.widgets.Menu menu)

addStopAllMenuItem

public static org.eclipse.swt.widgets.MenuItem addStopAllMenuItem(org.eclipse.swt.widgets.Menu menu)

addPauseMenuItem

public static org.eclipse.swt.widgets.MenuItem addPauseMenuItem(org.eclipse.swt.widgets.Menu menu)

addPauseForMenuItem

public static org.eclipse.swt.widgets.MenuItem addPauseForMenuItem(org.eclipse.swt.widgets.Menu menu)

addResumeMenuItem

public static org.eclipse.swt.widgets.MenuItem addResumeMenuItem(org.eclipse.swt.widgets.Menu menu)

addMyTorrentsMenuItem

public static org.eclipse.swt.widgets.MenuItem addMyTorrentsMenuItem(org.eclipse.swt.widgets.Menu menu)

addAllPeersMenuItem

public static org.eclipse.swt.widgets.MenuItem addAllPeersMenuItem(org.eclipse.swt.widgets.Menu menu)

addClientStatsMenuItem

public static org.eclipse.swt.widgets.MenuItem addClientStatsMenuItem(org.eclipse.swt.widgets.Menu menu)

addDeviceManagerMenuItem

public static org.eclipse.swt.widgets.MenuItem addDeviceManagerMenuItem(org.eclipse.swt.widgets.Menu menu)

addSubscriptionMenuItem

public static org.eclipse.swt.widgets.MenuItem addSubscriptionMenuItem(org.eclipse.swt.widgets.Menu menu)

addMyTrackerMenuItem

public static org.eclipse.swt.widgets.MenuItem addMyTrackerMenuItem(org.eclipse.swt.widgets.Menu menu)

addMySharesMenuItem

public static org.eclipse.swt.widgets.MenuItem addMySharesMenuItem(org.eclipse.swt.widgets.Menu menu)

addViewToolbarMenuItem

public static org.eclipse.swt.widgets.MenuItem addViewToolbarMenuItem(org.eclipse.swt.widgets.Menu menu)

addTransferBarToMenu

public static org.eclipse.swt.widgets.MenuItem addTransferBarToMenu(org.eclipse.swt.widgets.Menu menu)

addSpeedLimitsToMenu

public static org.eclipse.swt.widgets.MenuItem addSpeedLimitsToMenu(org.eclipse.swt.widgets.Menu menuParent)

addAdvancedHelpMenuItem

public static org.eclipse.swt.widgets.MenuItem addAdvancedHelpMenuItem(org.eclipse.swt.widgets.Menu menuParent)

showText

public static void showText(String title,
                            String message,
                            List<String> lines)

addBlockedIPsMenuItem

public static org.eclipse.swt.widgets.MenuItem addBlockedIPsMenuItem(org.eclipse.swt.widgets.Menu menu)

addConsoleMenuItem

public static org.eclipse.swt.widgets.MenuItem addConsoleMenuItem(org.eclipse.swt.widgets.Menu menu)

addStatisticsMenuItem

public static org.eclipse.swt.widgets.MenuItem addStatisticsMenuItem(org.eclipse.swt.widgets.Menu menu)

addNatTestMenuItem

public static org.eclipse.swt.widgets.MenuItem addNatTestMenuItem(org.eclipse.swt.widgets.Menu menu)

addNetStatusMenuItem

public static org.eclipse.swt.widgets.MenuItem addNetStatusMenuItem(org.eclipse.swt.widgets.Menu menu)

addSpeedTestMenuItem

public static org.eclipse.swt.widgets.MenuItem addSpeedTestMenuItem(org.eclipse.swt.widgets.Menu menu)

addConfigWizardMenuItem

public static org.eclipse.swt.widgets.MenuItem addConfigWizardMenuItem(org.eclipse.swt.widgets.Menu menu)

addOptionsMenuItem

public static org.eclipse.swt.widgets.MenuItem addOptionsMenuItem(org.eclipse.swt.widgets.Menu menu)

addMinimizeWindowMenuItem

public static org.eclipse.swt.widgets.MenuItem addMinimizeWindowMenuItem(org.eclipse.swt.widgets.Menu menu)

addBringAllToFrontMenuItem

public static org.eclipse.swt.widgets.MenuItem addBringAllToFrontMenuItem(org.eclipse.swt.widgets.Menu menu)

appendWindowMenuItems

public static void appendWindowMenuItems(org.eclipse.swt.widgets.Menu menuParent)
Appends the list of opened interactive windows to the bottom of the specified shell menu

Parameters:
menuParent - The shell menu
shell -

addZoomWindowMenuItem

public static org.eclipse.swt.widgets.MenuItem addZoomWindowMenuItem(org.eclipse.swt.widgets.Menu menuParent)

addAboutMenuItem

public static org.eclipse.swt.widgets.MenuItem addAboutMenuItem(org.eclipse.swt.widgets.Menu menu)

addHealthMenuItem

public static org.eclipse.swt.widgets.MenuItem addHealthMenuItem(org.eclipse.swt.widgets.Menu menu)

addWhatsNewMenuItem

public static org.eclipse.swt.widgets.MenuItem addWhatsNewMenuItem(org.eclipse.swt.widgets.Menu menu)

addWikiMenuItem

public static org.eclipse.swt.widgets.MenuItem addWikiMenuItem(org.eclipse.swt.widgets.Menu menu)

addVoteMenuItem

public static org.eclipse.swt.widgets.MenuItem addVoteMenuItem(org.eclipse.swt.widgets.Menu menu)

addReleaseNotesMenuItem

public static org.eclipse.swt.widgets.MenuItem addReleaseNotesMenuItem(org.eclipse.swt.widgets.Menu menu)

addHelpSupportMenuItem

public static org.eclipse.swt.widgets.MenuItem addHelpSupportMenuItem(org.eclipse.swt.widgets.Menu menu,
                                                                      String support_url)

addDonationMenuItem

public static org.eclipse.swt.widgets.MenuItem addDonationMenuItem(org.eclipse.swt.widgets.Menu menu)

addGetPluginsMenuItem

public static org.eclipse.swt.widgets.MenuItem addGetPluginsMenuItem(org.eclipse.swt.widgets.Menu menu)

addDebugHelpMenuItem

public static org.eclipse.swt.widgets.MenuItem addDebugHelpMenuItem(org.eclipse.swt.widgets.Menu menu)

addCheckUpdateMenuItem

public static org.eclipse.swt.widgets.MenuItem addCheckUpdateMenuItem(org.eclipse.swt.widgets.Menu menu)

addBetaMenuItem

public static void addBetaMenuItem(org.eclipse.swt.widgets.Menu menuParent)

addPluginInstallMenuItem

public static org.eclipse.swt.widgets.MenuItem addPluginInstallMenuItem(org.eclipse.swt.widgets.Menu menuParent)

addPluginUnInstallMenuItem

public static org.eclipse.swt.widgets.MenuItem addPluginUnInstallMenuItem(org.eclipse.swt.widgets.Menu menuParent)

addAlertsMenu

public static void addAlertsMenu(org.eclipse.swt.widgets.Menu menu,
                                 boolean createSubmenu,
                                 DownloadManager[] dms)

addAlertsMenu

public static void addAlertsMenu(org.eclipse.swt.widgets.Menu menu,
                                 DownloadManager dm,
                                 DiskManagerFileInfo[] files)

addLabelMenuItem

public static final org.eclipse.swt.widgets.MenuItem addLabelMenuItem(org.eclipse.swt.widgets.Menu menu,
                                                                      String localizationKey)
Creates a menu item that is simply a label; it does nothing is selected

Parameters:
menu -
localizationKey -
Returns:

addPairingMenuItem

public static void addPairingMenuItem(org.eclipse.swt.widgets.Menu menu)

addSeparatorMenuItem

public static org.eclipse.swt.widgets.MenuItem addSeparatorMenuItem(org.eclipse.swt.widgets.Menu menuParent)

createTopLevelMenuItem

public static org.eclipse.swt.widgets.MenuItem createTopLevelMenuItem(org.eclipse.swt.widgets.Menu menuParent,
                                                                      String localizationKey)

addMenuItem

public static final org.eclipse.swt.widgets.MenuItem addMenuItem(org.eclipse.swt.widgets.Menu menu,
                                                                 String localizationKey,
                                                                 org.eclipse.swt.widgets.Listener selListener)

addMenuItem

public static final org.eclipse.swt.widgets.MenuItem addMenuItem(org.eclipse.swt.widgets.Menu menu,
                                                                 String localizationKey,
                                                                 org.eclipse.swt.widgets.Listener selListener,
                                                                 int style)

addMenuItem

public static final org.eclipse.swt.widgets.MenuItem addMenuItem(org.eclipse.swt.widgets.Menu menu,
                                                                 int style,
                                                                 String localizationKey,
                                                                 org.eclipse.swt.widgets.Listener selListener)

addMenuItem

public static final org.eclipse.swt.widgets.MenuItem addMenuItem(org.eclipse.swt.widgets.Menu menu,
                                                                 int style,
                                                                 int index,
                                                                 String localizationKey,
                                                                 org.eclipse.swt.widgets.Listener selListener)

updateMenuText

public static void updateMenuText(Object menu)

performOneTimeDisable

public static void performOneTimeDisable(org.eclipse.swt.widgets.MenuItem item,
                                         boolean affectsChildMenuItems)

findMenu

public static org.eclipse.swt.widgets.Menu findMenu(org.eclipse.swt.widgets.Menu menuToStartWith,
                                                    String idToMatch)
Find and return the menu with the given id starting from the given menu

Parameters:
menuToStartWith -
idToMatch - any of the menu keys listed in IMenuConstants
Returns:
may return null if not found

findMenuItem

public static org.eclipse.swt.widgets.MenuItem findMenuItem(org.eclipse.swt.widgets.Menu menuToStartWith,
                                                            String idToMatch)
Find and return the menu item with the given id starting from the given menu

Parameters:
menuToStartWith -
idToMatch - any of the menu keys listed in IMenuConstants
Returns:
may return null if not found

findMenuItem

public static org.eclipse.swt.widgets.MenuItem findMenuItem(org.eclipse.swt.widgets.Menu menuToStartWith,
                                                            String idToMatch,
                                                            boolean deep)

setEnablementKeys

public static void setEnablementKeys(org.eclipse.swt.widgets.Widget widget,
                                     int keys)

getEnablementKeys

public static int getEnablementKeys(org.eclipse.swt.widgets.Widget widget)

updateEnabledStates

public static void updateEnabledStates(org.eclipse.swt.widgets.Menu menuToStartWith)
Updates the enabled state of the given menu and all its applicable children

NOTE: This method currently iterates through the menu hierarchy to set the enablement which may be inefficient since most menus do not have this flag set; it may be desirable to employ a map of only the effected menus for efficient direct access to them

Parameters:
menuToStartWith -

setEnablement

public static boolean setEnablement(org.eclipse.swt.widgets.Widget widget)
Sets whether the given widget is enabled or not based on the value of the KEY_ENABLEMENT object data set into the given widget.

Parameters:
widget -
Returns:

isEnabledForCurrentMode

public static boolean isEnabledForCurrentMode(org.eclipse.swt.widgets.Widget widget)
Returns whether the given widget should be enabled for the current mode; current mode can be az2, az3, or az3 advanced.

Parameters:
widget -
Returns: