1 /*************************************************************************
2 * @author Ali Echihabi (ali_echihabi@ieee.org, ali.echihabi@souss.ca)
4 * Plugin for PHP unit Testing.
7 *************************************************************************/
9 package net.sourceforge.phpeclipse.phpunit;
11 import org.eclipse.swt.SWT;
12 import org.eclipse.swt.events.MouseEvent;
13 import org.eclipse.swt.events.MouseListener;
14 import org.eclipse.swt.widgets.Button;
15 import org.eclipse.swt.widgets.Composite;
16 import org.eclipse.swt.widgets.FileDialog;
18 public class SettingsInfoComposite extends Composite {
30 public SettingsInfoComposite(Composite parent, int style) {
34 dialog = new FileDialog(parent.getShell());
36 button = new Button(parent, SWT.NONE);
37 button.setText("Browser for test...");
39 button.addMouseListener(new MouseListener() {
40 public void mouseDoubleClick(MouseEvent arg0) {
41 // TODO Auto-generated method stub
45 public void mouseDown(MouseEvent arg0) {
47 testSuitePath = dialog.open();
48 System.out.println("file: " + testSuitePath);
52 public void mouseUp(MouseEvent arg0) {
53 // TODO Auto-generated method stub
60 public String getTestSuite() {
68 protected void showFileDialog() {
70 testSuitePath = dialog.open();
71 System.out.println("file: " + testSuitePath);