Bug 318220 - Zoom combo empty by default, doesn't show current zoom level
Summary: Zoom combo empty by default, doesn't show current zoom level
Status: NEW
Alias: None
Product: GEF
Classification: Tools
Component: GEF-Legacy Zest (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-28 14:08 EDT by Tim deBoer CLA
Modified: 2012-10-09 19:22 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).