| Summary: | [Compatibility] ShowViewMenu contribution item doesn't show all entries | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Joachim Mairböck <j.mairboeck> | ||||
| Component: | UI | Assignee: | Remy Suen <remy.suen> | ||||
| Status: | VERIFIED FIXED | QA Contact: | Remy Suen <remy.suen> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | pwebster, remy.suen | ||||
| Version: | 4.1 | ||||||
| Target Milestone: | 4.1.1 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Joachim Mairböck
If you change the code so that ShowViewMenu's 'dirty' field is removed and isDirty() always returns 'true', does the problem go away? Also, check your error log at <runtime-workspace>/.metadata/.log (or in your RCPapp/configuration directory, or add -consoleLog). Are there any errors? If there are no more menu items after the first one you included, sounds like we stopped rendering them for some reason (maybe an exception?) PW There were no corresponding exceptions in the log, just the menu were not there. Created attachment 195069 [details]
Patch against v20110504-1730
Remy Suen, your suggested fix works indeed. Thank you for the quick response! I'll attach a patch with my changes. The patch is agaist the v20110504-1730 tag, the version I am currently using.
(In reply to comment #4) > Remy Suen, your suggested fix works indeed. Thanks for verifying. This must be the problem where the MenuManager's update(boolean, boolean) method is called twice. Remy, did we get this? PW (In reply to comment #6) > Remy, did we get this? I just checked, no, it is still a problem. Fix released to R4_development as 3c21dc24a4f8384529055e64e834acc87d2c4c1f. http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?h=R4_development&id=3c21dc24a4f8384529055e64e834acc87d2c4c1f Verified by source inspection with M20110817-2001. |