debug feature was named wrong. This is the fix.
[phpeclipse.git] / net.sourceforge.phpeclipse.phpunit / src / net / sourceforge / phpeclipse / phpunit / SettingsInfoComposite.java
index 1babb56..f815d87 100644 (file)
@@ -1,9 +1,11 @@
-/*
- * Created on Sep 11, 2004
+/*************************************************************************
+ * @author Ali Echihabi (ali_echihabi@ieee.org, ali.echihabi@souss.ca)
  *
- * To change the template for this generated file go to
- * Window>Preferences>Java>Code Generation>Code and Comments
- */
+ * Plugin for PHP unit Testing.
+ * www.phpeclipse.de
+ * 
+ *************************************************************************/
+
 package net.sourceforge.phpeclipse.phpunit;
 
 import org.eclipse.swt.SWT;
@@ -13,17 +15,12 @@ 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;
 
        /**
@@ -31,14 +28,14 @@ public class SettingsInfoComposite extends Composite {
         * @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
@@ -46,7 +43,7 @@ public class SettingsInfoComposite extends Composite {
                        }
 
                        public void mouseDown(MouseEvent arg0) {
-                       
+
                                testSuitePath = dialog.open();
                                System.out.println("file: " + testSuitePath);
 
@@ -57,19 +54,22 @@ public class SettingsInfoComposite extends Composite {
 
                        }
                });
-               
-               
-               
-               
-               
+
        }
-       
-       
+
        public String getTestSuite() {
-               
+
                return testSuitePath;
        }
-       
-       
+
+       /**
+        * 
+        */
+       protected void showFileDialog() {
+
+               testSuitePath = dialog.open();
+               System.out.println("file: " + testSuitePath);
+
+       }
 
 }