//combo.setBackground(ColorConstants.Bold);
combo.setToolTipText("Zoom Level");
combo.addModifyListener(new ModifyListener() {
public void modifyText(final ModifyEvent e) {
ShapeEditor editor = ((ShapeEditor) PlatformUI
.getWorkbench().getActiveWorkbenchWindow()
.getActivePage().getActiveEditor());
String txval = combo.getItem(combo.getSelectionIndex());
txval = txval.replace('%', ' ').trim();
int val = Integer.parseInt(txval);
editor.setZoom((float) val / 100f);
selectedIndex = combo.getSelectionIndex();
}
});
return combo;