Monitoring adds/removes to a ModelElementList [message #1017470] |
Mon, 11 March 2013 18:15  |
Eclipse User |
|
|
|
I have the feeling this has a simple answer, but I'm wondering what the recommended approach is for monitoring when elements are added to/removed from a ListProperty.
My scenario is a Sapphire editor linked to a View built using Worldwind, and used to edit a list of geolocated objects. Each object has a linked graphic within the Worldwind view. Currently these graphics are created/populated when the Sapphire editor is opened, and disposed when it closes, but naturally I would like to add them on-the-fly as the user adds a new ModelElement to the list (and, conversely, remove them when an element is removed from the list).
I'm unsure within the hierarchy of Sapphire events and listeners which would be most appropriate for this. In particular, I need to make sure any new ModelElement is fully initialized before I try to retrieve it (I have InitialValueServices on several of the properties).
Any suggestions would be greatly appreciated.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03956 seconds