Trouble with DeferredContentProvider [message #330693] |
Fri, 08 August 2008 15:18 |
Eclipse User |
|
|
|
Originally posted by: David.Furstein.beacon-cs.com
I have been able to get lazy virtual tables working, however I would like
to add filtering to my tables so I have attempted to migrate over to
DeferredContentProvider to allow for basic filtering and sorting. I have
extended my content provider to use the DeferredContentProvider. The
object that manages my data which I pass to the table viewer as input, has
been extended to implement IConcurrentModel. In order to do this, I have
attempted to write the appropriate listeners:
@Override
public void addListener(IConcurrentModelListener listener)
{
listener.setContents(m_entries.getEntries().toArray());
}
@Override
public void removeListener(IConcurrentModelListener listener)
{
listener.remove(m_entries.getEntries().toArray());
}
@Override
public void requestUpdate(IConcurrentModelListener listener)
{
listener.update(m_entries.getEntries().toArray()); }
Within my content provider, I have made a call within the inputChange
function, super.inputChanged(...), in order to call the
BackgroundContentProvider's inputChanged function. Finally, I added the
appropriate filter to the content provider, rather than the table viewer.
The filter is not working. I was wondering if there was anything wrong
with how I am going about implementing the DeferredContentProvider? I can
include some code if that would be beneficial, thanks in advance.
|
|
|
Powered by
FUDForum. Page generated in 0.02662 seconds