Community
Participate
Working Groups
* @see ISetSelectionTarget#selectReveal()
*/
public void selectReveal(ISelection selection) {
// try to get the ICElement selection if possible, otherwise fall back to regular object
// selection which could be an IResource.
IStructuredSelection ssel = SelectionConverter.convertSelectionToCElements(selection);
if (!ssel.isEmpty()) {
getViewer().setSelection(ssel, true);
} else {
getViewer().setSelection(selection, true);
}