As Eclipse’s plug-in developer I often ask my self: what is the current workbench selection ?? Developers may need such information for example when they want to update a given view according to an other view selection but don’t know what the provided selection exactly is or when creating a new custom Selection provider. It can also be useful for simple debug purpose.
To answer this question I wrote a simple plug-in adding a new view to my workbench showing the content of the current selection in a simple JFace TableViewer.
The view is added to the PDE category :
Here is what it looks like when two Java methods are selected in the outline view :
May be I missed something and such information is already available somewhere in the PDE … ?? If Yes, please let me know.