Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » create InterfaceRealization issue
create InterfaceRealization issue [message #628384] Thu, 22 April 2010 11:05
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


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
Previous Topic:Re: How to transform a textual description of a UML model to UML2 format
Next Topic:How to : UML deep modifications
Goto Forum:
  


Current Time: Mon Jul 28 16:39:06 EDT 2014

Powered by FUDForum. Page generated in 0.11332 seconds