import net.sourceforge.phpeclipse.phpunit.testpool.TestPool;
import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
private Label labelRuns, labelRunsVal; // Runs: 12
- private Label labelErrors, labelErrorsVal;
- private Label labelFailures, labelFailuresVal;
+ private Label labelErrors, labelErrorsImage, labelErrorsVal;
+ private Label labelFailures, labelFailuresImage, labelFailuresVal;
+
private ProgressBar progressBar;
/**
Composite labelsComposite =
new Composite(this, SWT.NONE);
+
labelsComposite.setLayoutData(
new GridData(GridData.GRAB_HORIZONTAL | GridData.FILL_HORIZONTAL));
labelRunsVal = new Label(labelsComposite, SWT.NONE);
labelRunsVal.setText("0 / 0");
+ labelFailuresImage = new Label(labelsComposite, SWT.NONE);
+ labelFailuresImage.setImage(PHPUnitImages.DESC_FAILURE.createImage());
labelFailures = new Label(labelsComposite, SWT.NONE);
labelFailures.setText("Failures: ");
labelFailuresVal = new Label(labelsComposite, SWT.NONE);
labelFailuresVal.setText("0");
+
+ labelErrorsImage = new Label(labelsComposite, SWT.NONE);
+ labelErrorsImage.setImage(PHPUnitImages.DESC_ERROR.createImage());
labelErrors = new Label(labelsComposite, SWT.NONE);
labelErrors.setText("Errors: ");
labelErrorsVal = new Label(labelsComposite, SWT.NONE);