Community
Participate
Working Groups
The Selection classes as part of the JFace Viewer should support Java Generics.
Added generics support to IStructuredSelection, StructuredSelection, and ITreeSelection. In addition, Snippets 005, 022, and 053 were updated as well: https://github.com/jeandersonbc/eclipse.platform.ui/commit/20f6894b9f190ee7c58341edeee0bc5cc22f69ab PS.: Casting the selection is quite annoying and still doesn't help much client code: IStructuredSelection<MyModel> selection = (IStructuredSelection<MyModel>) viewer.getSelection(); I think this is a little bit related to Bug 402439. I will think about improvements.
Will be handled via Bug 402445 *** This bug has been marked as a duplicate of bug 402445 ***
Reopen to solve this particular issue "Add generics to IStructuredSelection" independent of any viewer changes or anything else towards "generics for JFace" improvements.