Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 4896 Details for
Bug 37796
[Contributions] interactions: MenuManager findMenuUsingPath not working for action set items
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
test case
snippet.txt (text/plain), 992 bytes, created by
Lynne Kues
on 2003-05-16 19:03:01 EDT
(
hide
)
Description:
test case
Filename:
MIME Type:
Creator:
Lynne Kues
Created:
2003-05-16 19:03:01 EDT
Size:
992 bytes
patch
obsolete
> ActionSetRegistry reg = WorkbenchPlugin.getDefault().getActionSetRegistry(); > MenuManager windowMgr = ((WorkbenchWindow)WorkbenchPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow()).getMenuManager(); > IActionSetDescriptor [] sets = reg.getActionSets(); > for (int i = 0; i < sets.length; i ++) { > ActionSetDescriptor actionSetDesc = (ActionSetDescriptor)sets[i]; > IConfigurationElement[] actionConfigElements = actionSetDesc.getConfigElement().getChildren(); > for (int j=0; j < actionConfigElements.length; j++) { > IConfigurationElement actionConfig = actionConfigElements[j]; > String menuBarPath = actionConfig.getAttribute(ActionDescriptor.ATT_MENUBAR_PATH); > if (menuBarPath != null) { > int index = menuBarPath.lastIndexOf('/'); > if (index != -1) menuBarPath = menuBarPath.substring(0,index); > IMenuManager menu = windowMgr.findMenuUsingPath(menuBarPath); > if (menu == null) System.out.println("menu not found " + menuBarPath); > } > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 37796
: 4896