Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [Dltk-dev] Variables in the debugger that are shown asIndexedVariablePartition [0..99], [100..199] are after that filtered..

Hi Johan,

 

Thank you for reporting. I’ve tried to reproduce your problem using an array with 350 elements, but all was fine. There were 3 partitions with 100 elements each and one with 50. In addition, I don’t know what kind of filters you mean. May be I misunderstood something. Please send me your snippet of code and explain in more details what steps you’ve done to get this error.

 

Thanks,

Tim

 


From: dltk-dev-bounces@xxxxxxxxxxx [mailto:dltk-dev-bounces@xxxxxxxxxxx] On Behalf Of Johan Compagner
Sent: Tuesday, March 25
, 2008 7:33 PM
To: DLTK Developer list
Subject: [Dltk-dev] Variables in the debugger that are shown asIndexedVariablePartition [0..99],[100..199] are after that filtered..

 

Hi,

i am trying to fix something but i cant immediately see how to fix it

what i have is a variable in the debugger that has 350 children, that count is given to VariableContentProvider.
protected Object[] getValueChildren(IDebugElement parent, IValue value, IPresentationContext context) throws CoreException

so that methods makes 4 IndexedVariablePartition

But when i open those in the ui. I dont see 99 items in each of them no, sometimes only 5 or 6
this is because of the filters that seems to be applied after the creation of the 4 IndexedVariablePartition ..

I dont know how Java does this, havent looked into that yet, but at what point should the filter be applied?
The filter should run before or inside the getValueChildren() method but i dont see any hook.

And ScriptValue cant call the filter because those classes dont know anything about VariableContentProvider/ModelContentProvider

So how is this supposed to work correctly?

johan


Back to the top