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 225984 Details for
Bug 398865
Dynamic menu contribution as sole menu child does not render menu visible
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.
[patch]
Proposed solution
Bug398865.patch (text/plain), 931 bytes, created by
Marco Descher
on 2013-01-23 09:57:57 EST
(
hide
)
Description:
Proposed solution
Filename:
MIME Type:
Creator:
Marco Descher
Created:
2013-01-23 09:57:57 EST
Size:
931 bytes
patch
obsolete
>diff --git a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/MenuManagerRenderer.java b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/MenuManagerRenderer.java >index c5f3bef..8f4745f 100644 >--- a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/MenuManagerRenderer.java >+++ b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/MenuManagerRenderer.java >@@ -612,2 +612,12 @@ > processMenu(menuManager, itemModel); >+ } else if (childME instanceof MDynamicMenuContribution) { >+ // dummy item to force display of menu if this contribution is the >+ // only element - Bug 398865 >+ IContributionItem ci = new ContributionItem() { >+ @Override >+ public boolean isVisible() { >+ return true; >+ } >+ }; >+ menuManager.add(ci); > }
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 398865
:
225971
| 225984