Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » problem with the CheckboxCellEditor(CheckboxCellEditor Issue)
problem with the CheckboxCellEditor [message #1708021] Fri, 11 September 2015 13:35
Shashi D M is currently offline Shashi D MFriend
Messages: 27
Registered: August 2011
Junior Member
Dear All,

I created the tree viewer using the nebula Xviewer and i would like to add checkBoxCell editor for the coulmn data in the viewer using editing support.

but when i create CheckboxCellEditor and append to the viewer column it is not coming in the viewer.

Code :

public final void createCellEditors() {
if (xviewer != null) {
List<XViewerColumn> createdColumnList = ((viewerFactory) xviewer.getXViewerFactory()).getColumns();
int columnListSize = createdColumnList.size();
CellEditor[] editors = new CellEditor[columnListSize];
for (int i = 0; i < columnListSize; i++) {
CellEditor checkCellEditor = CheckboxCellEditor cellEditor=new CheckboxCellEditor(xviewer.getTree());
editors[i] = checkCellEditor ;
}
xviewer.setCellEditors(editors);
xviewer.setCellModifier(new CellModifier(xviewer));
xviewer.setColumnProperties(COLUMN_HEADERS);
xviewer.refresh();
}
}

when i print checkbox.getControl() in console i am getting null , so it would be helpful if someone suggest how to resolve this.
Previous Topic:TableViewer column header loses image on sorting
Next Topic:[databinding] How to observe EMF model changes?
Goto Forum:
  


Current Time: Mon Nov 19 13:06:20 GMT 2018

Powered by FUDForum. Page generated in 0.01692 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top