[CDO] Delete/RemoveCommand does not remove reference from EList [message #893026] |
Mon, 02 July 2012 06:58  |
Eclipse User |
|
|
|
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 07:07] by Moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03869 seconds