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 Mising name is currently offline Shashi Mising nameFriend
Messages: 47
Registered: August 2011
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.setCellModifier(new CellModifier(xviewer));

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: Tue Apr 20 09:36:20 GMT 2021

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

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

Back to the top