Skip to content

Commit

Permalink
Set the combo box initially to the chromatogram's column.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mailaender committed Dec 16, 2021
1 parent cb4e0fa commit dfabc4e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
import org.eclipse.jface.viewers.ComboViewer;
import org.eclipse.jface.viewers.ISelectionChangedListener;
import org.eclipse.jface.viewers.SelectionChangedEvent;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.MenuEvent;
import org.eclipse.swt.events.MenuListener;
Expand Down Expand Up @@ -1403,7 +1404,7 @@ private void setSeparationColumnSelection() {
separationColumns.add(0, separationColumn);
comboViewerSeparationColumn.setInput(separationColumns);
}
comboViewerSeparationColumn.getCombo().select(0);
comboViewerSeparationColumn.setSelection(new StructuredSelection(separationColumn));
}
}
}
Expand Down

0 comments on commit dfabc4e

Please sign in to comment.