Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Notification for removed objects
Notification for removed objects [message #659432] Sun, 13 March 2011 21:05 Go to next message
Marco  is currently offline Marco Friend
Messages: 216
Registered: August 2009
Senior Member
Hi,

I implemented an Adapter to react on the removal of objects from the model. But I cannot identify any such notifications.

The adapter just receives notification of the type SET or RESOLVE.

What else can I do if I need to specifically react on removal of objects.

Thanks,
Marco
Re: Notification for removed objects [message #659453 is a reply to message #659432] Mon, 14 March 2011 04:50 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
Marco,

If you have a single-valued feature, you should expect a "removal of an
object" to generate a SET with a new value of null. You might want to
look at EContentAdapter.handleContainment to get a better understanding
of what to expect...


Marco wrote:
> Hi,
>
> I implemented an Adapter to react on the removal of objects from the
> model. But I cannot identify any such notifications.
>
> The adapter just receives notification of the type SET or RESOLVE.
>
> What else can I do if I need to specifically react on removal of objects.
>
> Thanks,
> Marco
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:proposal display problem
Next Topic:Xtext and LaunchConfigurationType
Goto Forum:
  


Current Time: Thu Apr 18 18:31:04 GMT 2024

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

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

Back to the top