First commit in a looooooong time. I had connectivity problems.
[phpeclipse.git] / net.sourceforge.phpeclipse.phpunit / src / net / sourceforge / phpeclipse / phpunit / SettingsInfoComposite.java
diff --git a/net.sourceforge.phpeclipse.phpunit/src/net/sourceforge/phpeclipse/phpunit/SettingsInfoComposite.java b/net.sourceforge.phpeclipse.phpunit/src/net/sourceforge/phpeclipse/phpunit/SettingsInfoComposite.java
new file mode 100644 (file)
index 0000000..1babb56
--- /dev/null
@@ -0,0 +1,75 @@
+/*
+ * Created on Sep 11, 2004
+ *
+ * To change the template for this generated file go to
+ * Window>Preferences>Java>Code Generation>Code and Comments
+ */
+package net.sourceforge.phpeclipse.phpunit;
+
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.MouseEvent;
+import org.eclipse.swt.events.MouseListener;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.FileDialog;
+
+/**
+ * @author Ali Echihabi
+ *
+ * To change the template for this generated type comment go to
+ * Window>Preferences>Java>Code Generation>Code and Comments
+ */
+public class SettingsInfoComposite extends Composite {
+
+       FileDialog dialog;
+       Button button;
+       
+       String testSuitePath;
+
+       /**
+        * @param arg0
+        * @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 void mouseUp(MouseEvent arg0) {
+                               // TODO Auto-generated method stub
+
+                       }
+               });
+               
+               
+               
+               
+               
+       }
+       
+       
+       public String getTestSuite() {
+               
+               return testSuitePath;
+       }
+       
+       
+
+}