| Summary: | Zoom combo empty by default, doesn't show current zoom level | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Tim deBoer <deboer> |
| Component: | GEF-Legacy Zest | Assignee: | gef-inbox <gef-inbox> |
| Status: | NEW --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | zoltan.ujhelyi |
| Version: | 3.6 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
I think, this issue is already fixed for Zest 2.0 with the multitouch changes (https://bugs.eclipse.org/bugs/show_bug.cgi?id=371152). |
The ZoomContributionViewItem.createCombo() method does not select any item in the combo by default. As a result, if you use ZoomContributionViewItem on a view toolbar, the combo appears blank by default and does not tell you what the current zoom level is. Fix: Copy the lines from refreshCombo() that select an item in the combo. Workaround: Since the methods and field are private, you can't workaround by subclassing. Instead, you can wait until the view is visible and then poke the class: xyz.asyncExec(new Runnable() { public void run() { toolbarZoomContributionViewItem.zoomChanged(1); } });