1 package net.sourceforge.phpeclipse.phpunit;
4 import org.eclipse.swt.SWT;
5 import org.eclipse.swt.widgets.Composite;
6 import org.eclipse.swt.widgets.Label;
7 import org.eclipse.ui.part.ViewPart;
10 * Created on May 22, 2004
12 * To change the template for this generated file go to
13 * Window>Preferences>Java>Code Generation>Code and Comments
17 * @author Ali Echihabi (ali_echihabi@ieee.org)
19 * Plugin for PHP unit Testing.
22 * This the main view showing the progress and reports.
27 public class PHPUnitView extends ViewPart {
32 * The first level nodes are the test suites.
33 * children are nested test suites.
34 * leafs: test functions.
38 private int numTests; // total number of tests
39 private int numTestsRun; // number of tests run so far
40 private int numFailures; // number of failures so far
41 private int numErrors; // number of errors so far
42 private int numPasses; // number of passes so far (they should add up)
44 Label labelRuns, labelRunsVal; // Runs: 12
45 Label labelErrors, labelErrorsVal;
46 Label labelFailures, labelFailuresVal;
49 public PHPUnitView() {
53 public void createPartControl(Composite parent) {
55 //viewer = new TreeViewer(parent);
56 labelRuns = new Label(parent, SWT.WRAP);
57 labelRuns.setText("Runs: ");
58 labelRunsVal = new Label(parent, SWT.WRAP);
59 labelRunsVal.setText("0 / 0");
61 labelFailures = new Label(parent, SWT.WRAP);
62 labelFailures.setText("Failures: ");
63 labelFailuresVal = new Label(parent, SWT.WRAP);
64 labelFailuresVal.setText("0");
66 labelErrors = new Label(parent, SWT.WRAP);
67 labelErrors.setText("Errors: ");
68 labelErrorsVal = new Label(parent, SWT.WRAP);
69 labelErrorsVal.setText("0");
74 * @see org.eclipse.ui.IWorkbenchPart#setFocus()
76 public void setFocus() {