Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-debug-dev] setting Debug View selection programmatically

As part of the Multicore Visualizer work, I need a mechanism for setting the selection

in the Debug View (e.g. when the user selects threads in the visualizer, the corresponding

Debug View lines if any want to be highlighted).

 

In the original Grid View, I did this via the hacky method of constructing a Model Delta tree

with appropriate flags and passing it to TreeModelViewer.updateViewer().

 

However, in redoing this for the multicore visualizer I found there is a method on the viewer,

ITreeModelViewer.trySelection(), that takes a list of the model objects to be selected

and appears to handle setting the selection appropriately.

 

Is this usage of trySelection() as intended, and are there are any potential issues,

for example is there a planned reorg of the code that might deprecate

or remove this method?

 

--- WRS

 


Back to the top