Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » create InterfaceRealization issue
create InterfaceRealization issue [message #529000] Thu, 22 April 2010 11:05 Go to previous message
Ioana is currently offline Ioana
Messages: 10
Registered: April 2010
Junior Member
Hi

I have the following problem : I need to create a interface realization for a class (sourceClass)

existingModel = sourceClass.createInterfaceRealization(name, null);
// I need only to create the element, not to add it to the interface realizations list, so I do a remove
sourceClass.getInterfaceRealizations().remove(existingModel);


On saving the resource, I have a DanglingHrefException - it sais the InterfaceRealization is not contained in the resource.
I've discovered that "add" sets different features (clientDependency included), but "remove" does not remove it.

Is it something I've missed? or is this the "normal" behaviour (and unfortunately a bug)?

Thanks,
Ioana

[Updated on: Fri, 23 April 2010 02:06]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Stereoytpes are not applied after serialization!
Next Topic:AssociationClass directions
Goto Forum:
  


Current Time: Tue May 21 03:08:14 EDT 2013

Powered by FUDForum. Page generated in 0.01735 seconds