*
*************************************************************************/
-
package net.sourceforge.phpeclipse.phpunit;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.FileDialog;
-
-
public class SettingsInfoComposite extends Composite {
FileDialog dialog;
+
Button button;
-
+
String testSuitePath;
/**
* @param arg1
*/
public SettingsInfoComposite(Composite parent, int style) {
-
+
super(parent, style);
-
+
dialog = new FileDialog(parent.getShell());
-
+
button = new Button(parent, SWT.NONE);
button.setText("Browser for test...");
-
+
button.addMouseListener(new MouseListener() {
public void mouseDoubleClick(MouseEvent arg0) {
// TODO Auto-generated method stub
}
public void mouseDown(MouseEvent arg0) {
-
+
testSuitePath = dialog.open();
System.out.println("file: " + testSuitePath);
}
});
-
-
-
-
-
+
}
-
-
+
public String getTestSuite() {
-
+
return testSuitePath;
}
-
/**
*
*/
protected void showFileDialog() {
-
+
testSuitePath = dialog.open();
System.out.println("file: " + testSuitePath);
-
-
+
}
-
-
}