Community
Participate
Working Groups
Created attachment 195589 [details] Fix HEAD, follow-up to bug 341259 and bug 294650 comment 37 Bug 341259 added a debug flag to help finding content providers that return duplicate elements. A similar check should also be performed when items are manually added to a parent. Bug 294650 comment 37 has a patch for this, but the patch is not good: - adds a performance overhead to AbstractTreeViewer#internalAdd(..) even if the flag is disabled - assertElementsNotNull(..) is badly formatted and has bad API that doesn't tell that the array can also contain TreeItems
Fixed: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=db3d4922f5ac093be41cd3dbd99b51b0fd3d4d7c http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=2662dd7908828f828a74422148b1716bb1434fb3