if (selected instanceof TestCaseElement) {
if (selected == null) { next= getNextChildFailure(fTestRunSession.getTestRoot(), showNext); } else if (selected instanceof TestSuiteElement) { next= getNextChildFailure((TestSuiteElement) selected, showNext); if (next == null) next= getNextFailureSibling(selected, showNext); } else {
	public void selectFailure(boolean showNext) {		ITreeSelection selection= (ITreeSelection) fTreeViewer.getSelection();		TestElement selected= (TestElement) selection.getFirstElement();		TestElement next;				if (selected instanceof TestCaseElement) {			next= getNextFailureSibling(selected, showNext);		} else {			if (selected == null)				selected= fTestRunSession.getTestRoot();			next= getNextChildFailure((TestSuiteElement) selected, showNext);		}				if (next != null)			fTreeViewer.setSelection(new StructuredSelection(next), true);	}