ViewerSorter and ViewerFilter stop working [message #272334] |
Wed, 22 September 2004 00:33  |
Eclipse User |
|
|
|
Hey all...
I use a TableTreeViewer to display input provided by my content provider.
I call setInput on any number of instances of say ObjectA. The new data
shows up, and everything is fine.
I expand a little bit, so that ObjectA inherits from Model... as does
ObjectB.
My content provider operates on the base Model object and everyone is
happy.
When I set the input to ObjectB, my new data shows up fine, but the Sorter
and
Filter objects just stop working. the "compare" function in my ViewSorter
is never
called. No complaints or stack traces...
Any thoughts on what could cause the StructuredViewer to suddenly cease
recognizing the Sorter and Filter?
Thanks -- Mark
|
|
|
Re: ViewerSorter and ViewerFilter stop working [message #272717 is a reply to message #272334] |
Mon, 27 September 2004 01:00  |
Eclipse User |
|
|
|
Originally posted by: andrew_simon0.lycos.com
Mark Freiheit wrote:
> Hey all...
> I use a TableTreeViewer to display input provided by my content provider.
> I call setInput on any number of instances of say ObjectA. The new data
> shows up, and everything is fine.
> I expand a little bit, so that ObjectA inherits from Model... as does
> ObjectB.
> My content provider operates on the base Model object and everyone is
> happy.
> When I set the input to ObjectB, my new data shows up fine, but the Sorter
> and
> Filter objects just stop working. the "compare" function in my ViewSorter
> is never
> called. No complaints or stack traces...
> Any thoughts on what could cause the StructuredViewer to suddenly cease
> recognizing the Sorter and Filter?
> Thanks -- Mark
Hi Mark,
You say your new data shows up fine with ObjectB as input element, is
it with the filters on?
I'm asking because the filters' output goes to the sorter to get sorted
and if somehow filters return an empty array sorters don't do anything.
Can you make sure that filters are working properly and are selecting the
right elements? You might be awared with the additive nature of the
filters so if you are using more than filters then you need to make sure
that all are working fine in a chain.
good luck.
|
|
|
Powered by
FUDForum. Page generated in 0.02966 seconds