view.getSelection(); ISelection selection= view.getSelection(); Object element= null; if (selection instanceof IStructuredSelection) element= ((IStructuredSelection)selection).getFirstElement();
Object element= SelectionUtil.getSingleElement(view.getSelection());
	public void run() {		ISearchResultView view= SearchUI.getSearchResultView();				view.getSelection();		ISelection selection= view.getSelection();		Object element= null;		if (selection instanceof IStructuredSelection)			element= ((IStructuredSelection)selection).getFirstElement();		if (element instanceof ISearchResultViewEntry) {			ISearchResultViewEntry entry= (ISearchResultViewEntry)element;			show(entry.getSelectedMarker());		}	}