1 /*************************************************************************
2 * @author Ali Echihabi (ali_echihabi@ieee.org, ali.echihabi@souss.ca)
4 * Plugin for PHP unit Testing.
7 *************************************************************************/
10 package net.sourceforge.phpeclipse.phpunit;
12 import org.eclipse.swt.SWT;
13 import org.eclipse.swt.events.MouseEvent;
14 import org.eclipse.swt.events.MouseListener;
15 import org.eclipse.swt.widgets.Button;
16 import org.eclipse.swt.widgets.Composite;
17 import org.eclipse.swt.widgets.FileDialog;
21 public class SettingsInfoComposite extends Composite {
32 public SettingsInfoComposite(Composite parent, int style) {
36 dialog = new FileDialog(parent.getShell());
38 button = new Button(parent, SWT.NONE);
39 button.setText("Browser for test...");
41 button.addMouseListener(new MouseListener() {
42 public void mouseDoubleClick(MouseEvent arg0) {
43 // TODO Auto-generated method stub
47 public void mouseDown(MouseEvent arg0) {
49 testSuitePath = dialog.open();
50 System.out.println("file: " + testSuitePath);
54 public void mouseUp(MouseEvent arg0) {
55 // TODO Auto-generated method stub
67 public String getTestSuite() {
76 protected void showFileDialog() {
78 testSuitePath = dialog.open();
79 System.out.println("file: " + testSuitePath);