Commit
e80d68476e5a78ed6e7250b3bccc664487ded2ee
by saadia dhouibBug 580562 - [Papyrus4Manufacturing] Bug with static nested classes in
DynamicElementsWorkspace
I've located the piece of code where things go wrong.
The problem lies in the part where the compilation unit is parsed and as
soon as any nested or anonymous type is part of it, the recursive
examineChildren() method goes a little nuts and deletes operations.
I've tried to fix it by switching the two if statements around: No it
examines for IType first, before drilling down into IParent. And the
processing steps as soon as the first IType is found.
I'm sure there are other issues with this fix, so I'm looking forward to
your review.
Signed-off-by: Moritz Marseu <moritz.marseu@festo.com>
Change-Id: Ib81ad1aefcf5cb4e105ed0ea4fa992adc7296826