Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » No notification from classifier when package changes
No notification from classifier when package changes [message #627760] Thu, 02 July 2009 09:18
Patrick Oppermann is currently offline Patrick OppermannFriend
Messages: 10
Registered: July 2009
Junior Member

I just tried to attach an adapter to a Class instance to be notified as
soon as it is moved into another package.

In the code below, however, there is no notification, the sysout
statement is not reached:

Class clazz = UMLFactory.eINSTANCE.createClass();
Package package_ = UMLFactory.eINSTANCE.createPackage();
Package package_2 = UMLFactory.eINSTANCE.createPackage();

clazz.eAdapters().add(new AdapterImpl(){
public void notifyChanged(Notification msg){

Is there a way to be notified by a Class when its package changes?

Thanks in advance,
Previous Topic:Stereotype and Properties
Next Topic:GeneralizationSet
Goto Forum:

Current Time: Sat Aug 20 00:42:24 GMT 2022

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

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

Back to the top