Fix Topic copy with children#2618
Conversation
fedejeanne
left a comment
There was a problem hiding this comment.
Thank you for the contribution @vlakn ! The change looks good and I think there is no harm in applying it. I have some minor improvements (see comments) and also, do you have some custom formatting/clean-up options enabled in your workspace? I ask only because I see a lot of unrelated changes (nothing against them, it just makes it more difficult to review).
Can you please also mention the tests that are supposed to be fixed by this PR in the commit text?
ua/org.eclipse.help/src/org/eclipse/help/internal/UAElement.java
Outdated
Show resolved
Hide resolved
When creating a Topic from another ITopic also create copies of the topics children and bind these to the newly created topic instead of moving the children from the original topic to new newly created one. This fixes the issue of not returning the right parent when calling getChildren() for a child topic. Contributes to eclipse-platform#525
9bfa03f to
4c400c2
Compare
|
Thank you for the review and the feedback @fedejeanne!
|

When creating a topic from another ITopic also create copies of the topics children and bind these to the newly created topic instead of moving the children from the original topic to new newly created one. This fixes the issue of not returning the right parent when calling getChildren() for a child topic.
Contributes to
#525
Fixes https://bugs.eclipse.org/bugs/show_bug.cgi?id=210024