Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Generalization strange behaviour
Generalization strange behaviour [message #632922] Thu, 14 October 2010 16:31 Go to next message
123star  is currently offline 123star Friend
Messages: 70
Registered: June 2010

I need to execute some code after a generalization is created from the user with the palette among two Components, so I'm listening with a IPapyrusListener to notification events and I've found this:

in composite structure diagram 3 events are notified:

1)Type: ADD, Notifier: Class, NewValue: Generalization,
NameOfAttribute: generalization

2)Type: SET, Notifier: Generalization, NewValue: Class,
NameOfAttribute: specific

3)Type: SET, Notifier: Generalization, NewValue: Class,
NameOfAttribute: general

In class diagram the event 2 is missing, even if the action is the same (creation of a generalization among two Components), is it a bug?

Thanks in advance, 123star
Re: Generalization strange behaviour [message #634006 is a reply to message #632922] Wed, 20 October 2010 09:11 Go to previous message
Remi Schnekenburger is currently offline Remi SchnekenburgerFriend
Messages: 153
Registered: July 2009
Location: Paris Saclay, France
Senior Member

It surprising, as this should be the same commands. Moreover, when adding the generalization in the class diagram, the attributes of the generalization are correclty set.

So, i would say this is not really a bug, but this would be interesting to know the cause of this missing notification.

Previous Topic:How to create UML elements from own popupactions
Next Topic:working with gmfgen in papyrus, and doubts about sysml profile
Goto Forum:

Current Time: Fri Dec 02 22:48:29 GMT 2016

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

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