ISelection viewSelection = _currentResultView.getSelection();
if (viewSelection != null && !viewSelection.isEmpty()
&& viewSelection instanceof IStructuredSelection) {
IStructuredSelection selection = (IStructuredSelection)viewSelection;
SelectionSetExpression se = m_qp.getCurrentSelection();
se.clear();
for (Iterator<?> i = selection.iterator(); i.hasNext();)
{
se.add(i.next());
}
}