import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.part.ViewPart;
+/**
+ * @author Ali Echihabi
+ *
+ * To change the template for this generated type comment go to
+ * Window>Preferences>Java>Code Generation>Code and Comments
+ */
/*
* Created on May 22, 2004
*
Label labelErrors, labelErrorsVal;
Label labelFailures, labelFailuresVal;
+ Text reportArea; // TODO: replace with Tree display like JUnit
public PHPUnitView() {
labelErrorsVal = new Label(parent, SWT.WRAP);
labelErrorsVal.setText("0");
+ reportArea = new Text(parent, SWT.MULTI | SWT.BORDER |
+ SWT.WRAP | SWT.V_SCROLL | SWT.READ_ONLY);
+
+ // TODO layout!
}
/* (non-Javadoc)
* @see org.eclipse.ui.IWorkbenchPart#setFocus()
*/
public void setFocus() {
-
+ markTestPass("hello");
}
-
+ /**
+ * mark the given test as passed in the GUI.
+ *
+ * @param testID
+ */
+ private void markTestPass(String testID) {
+
+ // testid, use it in hashmap to retrieve tree item of test and
+ // change icon color, increment pass counter, etc...
+
+
+ //for now:
+ reportArea.append("test passed");
+ }