|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.azureus2.ui.swt.mainwindow.MenuFactory
public class MenuFactory
Field Summary |
---|
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,
java.lang.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,
java.lang.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,
java.lang.String localizationKey,
org.eclipse.swt.widgets.Listener selListener)
|
static org.eclipse.swt.widgets.MenuItem |
addMenuItem(org.eclipse.swt.widgets.Menu menu,
int style,
java.lang.String localizationKey,
org.eclipse.swt.widgets.Listener selListener)
|
static org.eclipse.swt.widgets.MenuItem |
addMenuItem(org.eclipse.swt.widgets.Menu menu,
java.lang.String localizationKey,
org.eclipse.swt.widgets.Listener selListener)
|
static org.eclipse.swt.widgets.MenuItem |
addMenuItem(org.eclipse.swt.widgets.Menu menu,
java.lang.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,
java.lang.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,
java.lang.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,
java.lang.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,
java.lang.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(java.lang.String title,
java.lang.String message,
java.util.List<java.lang.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(java.lang.Object menu)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MenuFactory()
Method Detail |
---|
public static org.eclipse.swt.widgets.MenuItem createFileMenuItem(org.eclipse.swt.widgets.Menu menuParent)
public static org.eclipse.swt.widgets.MenuItem createTransfersMenuItem(org.eclipse.swt.widgets.Menu menuParent)
public static org.eclipse.swt.widgets.MenuItem createViewMenuItem(org.eclipse.swt.widgets.Menu menuParent)
public static org.eclipse.swt.widgets.MenuItem createAdvancedMenuItem(org.eclipse.swt.widgets.Menu menuParent)
public static org.eclipse.swt.widgets.Menu createTorrentMenuItem(org.eclipse.swt.widgets.Menu menuParent)
public static void buildTorrentMenu(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem createToolsMenuItem(org.eclipse.swt.widgets.Menu menuParent)
public static org.eclipse.swt.widgets.MenuItem createPluginsMenuItem(org.eclipse.swt.widgets.Menu menuParent, boolean includeGetPluginsMenu)
menuParent
- includeGetPluginsMenu
- if true
then also include a menu item for getting new plugins
public static org.eclipse.swt.widgets.MenuItem createWindowMenuItem(org.eclipse.swt.widgets.Menu menuParent)
public static org.eclipse.swt.widgets.MenuItem createHelpMenuItem(org.eclipse.swt.widgets.Menu menuParent)
public static org.eclipse.swt.widgets.MenuItem addCreateMenuItem(org.eclipse.swt.widgets.Menu menuParent)
public static org.eclipse.swt.widgets.MenuItem createOpenMenuItem(org.eclipse.swt.widgets.Menu menuParent)
public static org.eclipse.swt.widgets.MenuItem addLogsViewMenuItem(org.eclipse.swt.widgets.Menu menuParent)
public static org.eclipse.swt.widgets.MenuItem addOpenTorrentMenuItem(org.eclipse.swt.widgets.Menu menuParent)
public static org.eclipse.swt.widgets.MenuItem addOpenURIMenuItem(org.eclipse.swt.widgets.Menu menuParent)
public static org.eclipse.swt.widgets.MenuItem addOpenTorrentForTrackingMenuItem(org.eclipse.swt.widgets.Menu menuParent)
public static org.eclipse.swt.widgets.MenuItem addSearchMenuItem(org.eclipse.swt.widgets.Menu menuParent)
public static org.eclipse.swt.widgets.MenuItem addOpenVuzeFileMenuItem(org.eclipse.swt.widgets.Menu menuParent)
public static org.eclipse.swt.widgets.MenuItem createShareMenuItem(org.eclipse.swt.widgets.Menu menuParent)
public static org.eclipse.swt.widgets.MenuItem addShareFileMenuItem(org.eclipse.swt.widgets.Menu menuParent)
public static org.eclipse.swt.widgets.MenuItem addShareFolderMenuItem(org.eclipse.swt.widgets.Menu menuParent)
public static org.eclipse.swt.widgets.MenuItem addShareFolderContentMenuItem(org.eclipse.swt.widgets.Menu menuParent)
public static org.eclipse.swt.widgets.MenuItem addShareFolderContentRecursiveMenuItem(org.eclipse.swt.widgets.Menu menuParent)
public static org.eclipse.swt.widgets.MenuItem addImportMenuItem(org.eclipse.swt.widgets.Menu menuParent)
public static org.eclipse.swt.widgets.MenuItem addExportMenuItem(org.eclipse.swt.widgets.Menu menuParent)
public static org.eclipse.swt.widgets.MenuItem addCloseWindowMenuItem(org.eclipse.swt.widgets.Menu menuParent)
public static org.eclipse.swt.widgets.MenuItem addCloseTabMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addCloseDetailsMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addCloseDownloadBarsToMenu(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addRestartMenuItem(org.eclipse.swt.widgets.Menu menuParent)
public static org.eclipse.swt.widgets.MenuItem addExitMenuItem(org.eclipse.swt.widgets.Menu menuParent)
public static org.eclipse.swt.widgets.MenuItem addStartAllMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addStopAllMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addPauseMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addPauseForMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addResumeMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addMyTorrentsMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addAllPeersMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addClientStatsMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addDeviceManagerMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addSubscriptionMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addMyTrackerMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addMySharesMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addViewToolbarMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addTransferBarToMenu(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addSpeedLimitsToMenu(org.eclipse.swt.widgets.Menu menuParent)
public static org.eclipse.swt.widgets.MenuItem addAdvancedHelpMenuItem(org.eclipse.swt.widgets.Menu menuParent)
public static void showText(java.lang.String title, java.lang.String message, java.util.List<java.lang.String> lines)
public static org.eclipse.swt.widgets.MenuItem addBlockedIPsMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addConsoleMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addStatisticsMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addNatTestMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addNetStatusMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addSpeedTestMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addConfigWizardMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addOptionsMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addMinimizeWindowMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addBringAllToFrontMenuItem(org.eclipse.swt.widgets.Menu menu)
public static void appendWindowMenuItems(org.eclipse.swt.widgets.Menu menuParent)
menuParent
- The shell menushell
- public static org.eclipse.swt.widgets.MenuItem addZoomWindowMenuItem(org.eclipse.swt.widgets.Menu menuParent)
public static org.eclipse.swt.widgets.MenuItem addAboutMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addHealthMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addWhatsNewMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addWikiMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addVoteMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addReleaseNotesMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addHelpSupportMenuItem(org.eclipse.swt.widgets.Menu menu, java.lang.String support_url)
public static org.eclipse.swt.widgets.MenuItem addDonationMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addGetPluginsMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addDebugHelpMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addCheckUpdateMenuItem(org.eclipse.swt.widgets.Menu menu)
public static void addBetaMenuItem(org.eclipse.swt.widgets.Menu menuParent)
public static org.eclipse.swt.widgets.MenuItem addPluginInstallMenuItem(org.eclipse.swt.widgets.Menu menuParent)
public static org.eclipse.swt.widgets.MenuItem addPluginUnInstallMenuItem(org.eclipse.swt.widgets.Menu menuParent)
public static void addAlertsMenu(org.eclipse.swt.widgets.Menu menu, boolean createSubmenu, DownloadManager[] dms)
public static void addAlertsMenu(org.eclipse.swt.widgets.Menu menu, DownloadManager dm, DiskManagerFileInfo[] files)
public static final org.eclipse.swt.widgets.MenuItem addLabelMenuItem(org.eclipse.swt.widgets.Menu menu, java.lang.String localizationKey)
menu
- localizationKey
-
public static void addPairingMenuItem(org.eclipse.swt.widgets.Menu menu)
public static org.eclipse.swt.widgets.MenuItem addSeparatorMenuItem(org.eclipse.swt.widgets.Menu menuParent)
public static org.eclipse.swt.widgets.MenuItem createTopLevelMenuItem(org.eclipse.swt.widgets.Menu menuParent, java.lang.String localizationKey)
public static final org.eclipse.swt.widgets.MenuItem addMenuItem(org.eclipse.swt.widgets.Menu menu, java.lang.String localizationKey, org.eclipse.swt.widgets.Listener selListener)
public static final org.eclipse.swt.widgets.MenuItem addMenuItem(org.eclipse.swt.widgets.Menu menu, java.lang.String localizationKey, org.eclipse.swt.widgets.Listener selListener, int style)
public static final org.eclipse.swt.widgets.MenuItem addMenuItem(org.eclipse.swt.widgets.Menu menu, int style, java.lang.String localizationKey, org.eclipse.swt.widgets.Listener selListener)
public static final org.eclipse.swt.widgets.MenuItem addMenuItem(org.eclipse.swt.widgets.Menu menu, int style, int index, java.lang.String localizationKey, org.eclipse.swt.widgets.Listener selListener)
public static void updateMenuText(java.lang.Object menu)
public static void performOneTimeDisable(org.eclipse.swt.widgets.MenuItem item, boolean affectsChildMenuItems)
public static org.eclipse.swt.widgets.Menu findMenu(org.eclipse.swt.widgets.Menu menuToStartWith, java.lang.String idToMatch)
menuToStartWith
- idToMatch
- any of the menu keys listed in IMenuConstants
null
if not foundpublic static org.eclipse.swt.widgets.MenuItem findMenuItem(org.eclipse.swt.widgets.Menu menuToStartWith, java.lang.String idToMatch)
menuToStartWith
- idToMatch
- any of the menu keys listed in IMenuConstants
null
if not foundpublic static org.eclipse.swt.widgets.MenuItem findMenuItem(org.eclipse.swt.widgets.Menu menuToStartWith, java.lang.String idToMatch, boolean deep)
public static void setEnablementKeys(org.eclipse.swt.widgets.Widget widget, int keys)
public static int getEnablementKeys(org.eclipse.swt.widgets.Widget widget)
public static void updateEnabledStates(org.eclipse.swt.widgets.Menu menuToStartWith)
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
menuToStartWith
- public static boolean setEnablement(org.eclipse.swt.widgets.Widget widget)
widget
-
public static boolean isEnabledForCurrentMode(org.eclipse.swt.widgets.Widget widget)
widget
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |