Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » ViewerSorter and ViewerFilter stop working
ViewerSorter and ViewerFilter stop working [message #272334] Wed, 22 September 2004 00:33 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Where are the code formatting standards?
Next Topic:Forcing character set and EOL style
Goto Forum:
  


Current Time: Sun Jul 13 00:32:43 EDT 2025

Powered by FUDForum. Page generated in 0.02966 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top