Community
Participate
Working Groups
IStructuredSelection.toList javadoc states: "In the default implementation of toList() in StructuredSelection the returned list is not a copy of the elements of the receiver and modifying it will modify the contents of the selection." In StructuredSelection, the toList implementation actually returns Arrays.asList(...) which is of type java.util.Arrays.ArrayList<E> which throws UnsupportedOperationException for both 'add' and 'remove'. The javadoc should probably be updated to reflect the fact that the contents of an IStructuredSelection cannot be modified. -- Jface version 3.12.2.
Gerrit reviews are welcome
New Gerrit change created: https://git.eclipse.org/r/120642
Gerrit change https://git.eclipse.org/r/120642 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=204ffc7c309da398ebe3bd33bce9a5d9f48ef450
Thanks, Michael.