private void showFailureDetail(Test test) { if (test != null) { ListModel failures = getFailures(); for (int i = 0; i < failures.getSize(); i++) { TestFailure failure = (TestFailure) failures.getElementAt(i); if (failure.failedTest() == test) { fFailureView.showFailure(failure); return; } } } fFailureView.clear(); }
private void initComponents() { toolbar = initToolbar(); /* if (inMac()) fProgressIndicator= new MacProgressBar(fStatusLine); else */ fProgressIndicator = new ProgressBar(); fCounterPanel = createCounterPanel(); fFailures = new DefaultListModel(); fTestViewTab = createTestRunViews(); fFailureView = createFailureDetailView(); tracePane = new JScrollPane( fFailureView.getComponent(), ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS); initMinFrame(); }
protected void reset() { fCounterPanel.reset(); fProgressIndicator.reset(); fFailureView.clear(); fFailures.clear(); }