Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sapphire » ReferenceValues with disposed/deleted referenced elements?
ReferenceValues with disposed/deleted referenced elements? [message #1039116] Thu, 11 April 2013 19:40 Go to next message
Ellen Badgley is currently offline Ellen BadgleyFriend
Messages: 35
Registered: October 2012
Member
I have a list property of (wrapped) ReferenceValues, referencing elements elsewhere in my model. If one of those elements is deleted, I want to refresh the list property and its constituents so that any "dangling" references are removed.

What's the recommended approach for this?
Re: ReferenceValues with disposed/deleted referenced elements? [message #1039121 is a reply to message #1039116] Thu, 11 April 2013 19:45 Go to previous messageGo to next message
Ellen Badgley is currently offline Ellen BadgleyFriend
Messages: 35
Registered: October 2012
Member
Sorry, I hit post too soon. I should have added that I have a pretty good idea of how to do this mechanically, by iterating through the list of ReferenceValues and removing any for which resolve() returns null or the resulting element is disposed. I'm more wondering if this is something that could be handled declaratively.
Re: ReferenceValues with disposed/deleted referenced elements? [message #1039138 is a reply to message #1039121] Thu, 11 April 2013 20:06 Go to previous message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 961
Registered: July 2009
Senior Member
There is no declarative facility for this.
Previous Topic:Horizontal layout with fixed width
Next Topic:XMLBinding to an element with an attribute with a fixed value
Goto Forum:
  


Current Time: Thu Dec 18 02:34:58 GMT 2014

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

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