Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-debug-dev] Flexible Viewer Help

Hi Patrick,
Now I remember the first wrinkle in trying to use the flexible hierarchy view in BP view.... Currently the flexible hierarchy viewer doesn't support checkmarks, and it's something that will need to be added. 

It seems most appropriate to add a new provider (e.g. IElementCheckedProvider), or to extend the label provider and updates.  The provider should allow for setting the checked and grayed state of the checkbox.  The main complication with this extension is the fact that the checkboxes are created as soon as the tree items are created and potentially before the model has a chance to create the  elements behind the virtual items.  IMO the most logical thing to do in those cases would be to just ignore the user's check request until the initial checked state could be retrieved.

Cheers,
Pawel

P.S. Yes it's a significant undertaking, but at least we're only on M1 :-)

Chuong, Patrick wrote:

Hi,

 

I am trying to use the flexible viewer provided by the platform. I am not able know able to figure out how to initialize the checkbox state for a virtual tree. Is any one came across this issue and could give me a pointer how to create virtual tree with checkbox?

 

I pretty much follow the variables view and modules view to implements my checkbox view, with the additional of the SWT.CHECK flag for the view style. But I don’t know how to initialize the checkbox state.

 

Thanks,

Patrick


_______________________________________________ platform-debug-dev mailing list platform-debug-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/platform-debug-dev


Back to the top