| Summary: | [Presentations] Misplaced view toolbar | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | heiko.eichberger |
| Component: | UI | Assignee: | Eric Moffatt <emoffatt> |
| Status: | VERIFIED FIXED | QA Contact: | Eric Moffatt <emoffatt> |
| Severity: | normal | ||
| Priority: | P3 | CC: | daniel.stein, daniel_megert, jessev, pwebster, remy.suen |
| Version: | 3.6.1 | ||
| Target Milestone: | 3.7 M6 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 394391 | ||
| Attachments: | |||
|
Description
heiko.eichberger
Created attachment 182694 [details]
An example project to reproduce the bug.
Could you provide a screen cap of what you're seeing ? BTW, I'm having some issues running your example, not sure why yet. A freshly generated RCPMail product runs and the launch configs look the same. Is it possible that your ZIP may be missing a file ? Hi Eric,
I've attached 2 screen caps of the application.
The ZIP file should contain everything. Beside a new generated RCPMail project there should be another file: AnotherView.java. This ViewPart has been added to the perspective (Perspective.java) and the views extension in the plugin.xml.
I hope this helps you to reproduce it.
Regards,
Heiko
> Could you provide a screen cap of what you're seeing ?
>
> BTW, I'm having some issues running your example, not sure why yet. A freshly
> generated RCPMail product runs and the launch configs look the same. Is it
> possible that your ZIP may be missing a file ?
Created attachment 182962 [details]
Screen cap of the RCPMail application
Created attachment 182963 [details]
A zoomed screen cap of the RCPMail application
Reproduced on my end with code from HEAD. We have a similiar problem. We have a workaround for the problem. Perhaps this workaround works for you as well. See bug 304196 Created attachment 188000 [details]
Ensure that the newly created toolbar is not visible
Note that the code that calls this, PartPane#createControl, explicitly sets its created control's visibility to false so this code just ensures that the TB is not visible either...
The base cause for this is the 'findView' code in the advisor's perspective activation listener. While suspect (newer code is recommended to use 'findViewReference') there are other calls that can explicitly cause a view to be created without being 'on top' (i.e. 'ShowView(.., CREATE')). I've kicked around the UI with a variety of 'inner' setups and have seen no instances of *missing* TBs (which is what we'd get if the TB wasn't correctly being made visible as needed). Committed in >20100131. Applied the patch. VERIFIED on build I20110307-2110. I don't see any ghostly toolbars. Thanks Jesse ! |