I created a ComboViewer
final ComboViewer comboViewer = new ComboViewer(shlFreeViews, SWT.NONE);
final Combo combo = comboViewer.getCombo();
combo.setVisibleItemCount(4);
combo.setFont(SWTResourceManager.getFont("Segoe UI", 13, SWT.NORMAL));
combo.setItems(new String[] {"5", "10", "15", "20"});
combo.setBounds(356, 172, 126, 25);
combo.setText("5");
The problem is that when I open the program I have to select a number of my comboviewer and then I have to use this number for do a simple addition. What the code to get the selected number of the comboviewer?