implemented 1416503, automatic closing of braces
[phpeclipse.git] / net.sourceforge.phpeclipse.phpunit / src / net / sourceforge / phpeclipse / phpunit / PHPUnitImages.java
index 006336a..f5126d3 100644 (file)
@@ -1,3 +1,11 @@
+/*************************************************************************
+ * @author Ali Echihabi (ali_echihabi@ieee.org, ali.echihabi@souss.ca)
+ *
+ * Plugin for PHP unit Testing.
+ * www.phpeclipse.de
+ * 
+ *************************************************************************/
+
 package net.sourceforge.phpeclipse.phpunit;
 
 import java.net.MalformedURLException;
@@ -7,6 +15,7 @@ import org.eclipse.jface.resource.ImageDescriptor;
 import org.eclipse.jface.resource.ImageRegistry;
 import org.eclipse.swt.graphics.Image;
 
+
 public class PHPUnitImages {
 
        protected static final String NAME_PREFIX =
@@ -40,22 +49,36 @@ public class PHPUnitImages {
        public static final String IMG_TEST_ERROR = NAME_PREFIX + "testerr.gif";
        public static final String IMG_TEST_FAILURE = NAME_PREFIX + "testfail.gif";
        public static final String IMG_TEST_PASS = NAME_PREFIX + "testok.gif";
-       public static final String IMG_TEST_SUITE_ERROR = NAME_PREFIX + "tsuiteerror.gif";
-       public static final String IMG_TEST_SUITE_PASS = NAME_PREFIX + "tsuiteok.gif";
-       public static final String IMG_TEST_SUITE_FAILURE = NAME_PREFIX + "tsuitefail.gif";
-       
-       
-
-
-       public static final ImageDescriptor DESC_SELECT_TEST_SUITE = createManaged(IMG_SELECT_TEST_SUITE);
-       public static final ImageDescriptor DESC_RUN_TEST_SUITE =createManaged(IMG_RUN_TEST_SUITE);
-       public static final ImageDescriptor DESC_TEST_ERROR = createManaged(IMG_TEST_ERROR);
-       public static final ImageDescriptor DESC_TEST_FAILURE = createManaged(IMG_TEST_FAILURE);
-       public static final ImageDescriptor DESC_TEST_PASS = createManaged(IMG_TEST_PASS);
-       public static final ImageDescriptor DESC_TEST_SUITE_ERROR = createManaged(IMG_TEST_SUITE_ERROR);
-       public static final ImageDescriptor DESC_TEST_SUITE_PASS = createManaged(IMG_TEST_SUITE_PASS);
-       public static final ImageDescriptor DESC_TEST_SUITE_FAILURE = createManaged(IMG_TEST_SUITE_FAILURE);
-       
+       public static final String IMG_TEST_SUITE_ERROR =
+               NAME_PREFIX + "tsuiteerror.gif";
+       public static final String IMG_TEST_SUITE_PASS =
+               NAME_PREFIX + "tsuiteok.gif";
+       public static final String IMG_TEST_SUITE_FAILURE =
+               NAME_PREFIX + "tsuitefail.gif";
+
+       public static final String IMG_ERROR = NAME_PREFIX + "error.gif";
+       public static final String IMG_FAILURE = NAME_PREFIX + "failure.gif";
+
+       public static final ImageDescriptor DESC_SELECT_TEST_SUITE =
+               createManaged(IMG_SELECT_TEST_SUITE);
+       public static final ImageDescriptor DESC_RUN_TEST_SUITE =
+               createManaged(IMG_RUN_TEST_SUITE);
+       public static final ImageDescriptor DESC_TEST_ERROR =
+               createManaged(IMG_TEST_ERROR);
+       public static final ImageDescriptor DESC_TEST_FAILURE =
+               createManaged(IMG_TEST_FAILURE);
+       public static final ImageDescriptor DESC_TEST_PASS =
+               createManaged(IMG_TEST_PASS);
+       public static final ImageDescriptor DESC_TEST_SUITE_ERROR =
+               createManaged(IMG_TEST_SUITE_ERROR);
+       public static final ImageDescriptor DESC_TEST_SUITE_PASS =
+               createManaged(IMG_TEST_SUITE_PASS);
+       public static final ImageDescriptor DESC_TEST_SUITE_FAILURE =
+               createManaged(IMG_TEST_SUITE_FAILURE);
+
+       public static final ImageDescriptor DESC_ERROR = createManaged(IMG_ERROR);
+       public static final ImageDescriptor DESC_FAILURE =
+               createManaged(IMG_FAILURE);
        /**
         * Returns the image managed under the given key in this registry.
         * 
@@ -70,7 +93,6 @@ public class PHPUnitImages {
                return IMAGE_REGISTRY;
        }
 
-       //---- Helper methods to access icons on the file system --------------------------------------
 
        protected static ImageDescriptor createManaged(String name) {
                try {