Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Trouble with DeferredContentProvider
Trouble with DeferredContentProvider [message #330693] Fri, 08 August 2008 15:18
Eclipse UserFriend
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.
Previous Topic:How to access an editor's SourceViewer and AnnotationModel
Next Topic:Job cancelling weirdness
Goto Forum:
  


Current Time: Thu Dec 26 21:42:47 GMT 2024

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

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

Back to the top