Skip to main content
Jump to: navigation, search

Nebula CTreeCombo

Revision as of 06:18, 19 March 2020 by (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

< Back to Nebula Main Page


This widget is an extension of a CCombo text field. It allows user to select a data, but instead of displaying data as a list it displays data as a tree:



You use this widget like a CCombo widget :

 CTreeCombo ctc = new CTreeCombo(group, SWT.BORDER | SWT.READ_ONLY);
 ctc.setLayoutData(new GridData(200, SWT.DEFAULT));

You fill the widget like a Tree widget, so you have to create CTreeComboItem that may have children:

 for (final Country country : modelList) {
   final CTreeComboItem item = new CTreeComboItem(ctc, SWT.NONE);
   for (final String commiter : country.getCommiters()) {
     final CTreeComboItem commiterItem = new CTreeComboItem(item, SWT.NONE);


An example called is located in the plugin org.eclipse.nebula.widgets.passwordrevealer.snippets.

This example is also available here :

Back to the top