Bug 318220

Summary: Zoom combo empty by default, doesn't show current zoom level
Product: [Tools] GEF Reporter: Tim deBoer <deboer>
Component: GEF-Legacy ZestAssignee: 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:

Description Tim deBoer CLA 2010-06-28 14:08:03 EDT
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);
	}
  });
Comment 1 Zoltan Ujhelyi CLA 2012-10-09 19:20:56 EDT
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).