Hi Pawel,
Thanks for
the input.
I had
extended the LabelUpdate class to
implements a new ICheckable interface, this allows the
ElementLabelProvider to
set the state of the checkbox in the retrieveLabel method. I didn’t add
the new checkbox methods directly to ILabelUpdate, because I am not
sure
whether the derived classes for ILabelUpdate should allow check state
or not.
I also added
a listener through an adapter
mechanism in the DebugElementAdapterFactory, IElementCheckListener, and
IBreakpoint
object returns this listener for check state changes, it can also
adapts to
breakpoint container as needed.
Do you think
this change requires new bug
# to track or it can be part of the breakpoint view changes?
Regards,
Patrick
P.S. I have
the prototype view that works
on the flexible hierarchy, it can be demo if need for the next meeting.
However, the breakpoint grouping remains an issue. I think this also
needs to
be extendable by the model provider for the current debug context as
well.
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