Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] What triggers the TreeModelLabelProvider to start request

 Hi Guys:

            It is a question on View Model stuff

       When debugger gets hit by a breakpoint and suspended, internally View Model nodes get the request to fetch DMC and DMData again. (updateElementsInSessionThread() is invoked)

 

       I add some breakpoints on ThreadVMNode and StackFramesVMNode, and then i see the original request come from             

 

TreeModelLabelProvider. private void startRequests(UIJob updateJob)

 

       My question is:

            1. Suppose that we have 100 threads in total, thread 1 – thread 100.

            2. Thread 50 gets breakpoint-hit

            3. According to screen size, thread 45 – thread 55 should be displayed.

            4. TreeModelLabelProvider. startRequests(UIJob updateJob)  starts a request that contains 10 updates (thread 45 – thread 55)

  

  Is there a way to control TreeModelLabelProvider. startRequests(UIJob updateJob)   send request for other updates, e.g. (Thread 44 – thread 54), so that Debug View will display thread 44- thread 54, not thread 45 – thread 55 any more.

 

 Should I modify the getDeltaModel() and buildDelta() of the ThreadVMNode or anything else?

 

 I hope this question is specific enough and thanks a lot!

Regards,

Charlie




Back to the top