[CDO] Delete/RemoveCommand does not remove reference from EList [message #893026] |
Mon, 02 July 2012 10:58 |
Erdal Karaca Messages: 854 Registered: July 2009 |
Senior Member |
|
|
I have the following EClass:
MyType:
+ visibleFeatures: EStructuralFeature (0 .. *)
I.e. my model class has an attribute of type EStructuralFeature with multiplicity set to 'many'.
If I use a Delete/RemoveCommand and execute it using the appropriate editing domain, the EList will still contain the reference:
Command removeCommand = new RemoveCommand(context.getEditingDomain(), eRefList, eObjectToRemove); //this is an EObject of type EStructuralFeature
context.getEditingDomain().getCommandStack().execute(removeCommand);
Is that supposed to work or do I miss something?
[Updated on: Mon, 02 July 2012 11:07] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03793 seconds