Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » ListDataProvider update/remove elements
ListDataProvider update/remove elements [message #1013460] Sat, 23 February 2013 18:05
Daya D is currently offline Daya DFriend
Messages: 4
Registered: February 2013
Junior Member
Hi,

In Natable, I'm faced with one problem that i cannot remove element from DataProvider directly by passing Object. Is there way, i can do update/remove of objects from dataprovider without iterating through it. I don't see remove taking object instead it takes index and this means I need to first find index and then update/remove (I thought there would be something based on equals implementation to find it).

I'm thinking if there is way to keep a map with mapping(HashMap<UniqueIdWithInObject,Index>,) between Object's UniqueID and ListProvider index. however, this would mean if ListDataProvider updated/sorted/removed then this map has to be in sync. That is bigger problem.

Any suggestion to handle it in better way ?
Previous Topic:Updating or removing elemetns from DataProvider
Next Topic:KeyEvents not getting registered on WizardDialog
Goto Forum:
  


Current Time: Fri Apr 26 05:40:45 GMT 2024

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

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

Back to the top