[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] Re: How to disable check boxes in checkbox tree viewers

There is no api to do this.  The only workaround I can think of is to listen
for Selection events with detail SWT.CHECK, and if the item is one that
should not be checkable by the user, re-set its checkmark to its previous
value.

Grant


"swaroop chalasani" <cswaroop@xxxxxxxxxx> wrote in message
news:el474s$vb2$1@xxxxxxxxxxxxxxxxxxxx
> Hi,
>
> I need to disable the checkboxes in ContainerCheckboxTreeViewer ( after
>   doing setGreyed() or setChecked()) preventing user do any select.
> Anybody has pointers to code
>
> thanks in advance.