continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r575316 - in /maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web: util/StateGenerator.java view/StateCell.java
Date Thu, 13 Sep 2007 13:49:38 GMT
Author: evenisse
Date: Thu Sep 13 06:49:38 2007
New Revision: 575316

URL: http://svn.apache.org/viewvc?rev=575316&view=rev
Log:
Add some missing icons

Modified:
    maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/util/StateGenerator.java
    maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/StateCell.java

Modified: maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/util/StateGenerator.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/util/StateGenerator.java?rev=575316&r1=575315&r2=575316&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/util/StateGenerator.java
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/util/StateGenerator.java
Thu Sep 13 06:49:38 2007
@@ -29,6 +29,12 @@
 {
     public static final String NEW = "NEW";
 
+    public static final String SUCCESS = "Success";
+
+    public static final String FAILED = "Failed";
+
+    public static final String ERROR = "Error";
+
     public static final String BUILDING = "Building";
 
     public static final String UPDATING = "Updating";
@@ -45,31 +51,33 @@
         }
         else if ( state == ContinuumProjectState.OK )
         {
-            return "<img src=\"" + contextPath +
-                "/images/icon_success_sml.gif\" alt=\"Success\" title=\"Success\" border=\"0\"
/>";
+            return "<img src=\"" + contextPath + "/images/icon_success_sml.gif\" alt=\""
+ SUCCESS + "\" title=\"" +
+                SUCCESS + "\" border=\"0\" />";
         }
         else if ( state == ContinuumProjectState.FAILED )
         {
-            return "<img src=\"" + contextPath +
-                "/images/icon_warning_sml.gif\" alt=\"Failed\" title=\"Failed\" border=\"0\"
/>";
+            return "<img src=\"" + contextPath + "/images/icon_warning_sml.gif\" alt=\""
+ FAILED + "\" title=\"" +
+                FAILED + "\" border=\"0\" />";
         }
         else if ( state == ContinuumProjectState.ERROR )
         {
-            return "<img src=\"" + contextPath +
-                "/images/icon_error_sml.gif\" alt=\"Error\" title=\"Error\" border=\"0\"
/>";
+            return "<img src=\"" + contextPath + "/images/icon_error_sml.gif\" alt=\""
+ ERROR + "\" title=\"" + ERROR +
+                "\" border=\"0\" />";
         }
         else if ( state == ContinuumProjectState.BUILDING )
         {
-            return "<img src=\"" + contextPath +
-                "/images/building.gif\" alt=\"Building\" title=\"Building\" border=\"0\"
/>";
+            return "<img src=\"" + contextPath + "/images/building.gif\" alt=\"" + BUILDING
+ "\" title=\"" + BUILDING +
+                "\" border=\"0\" />";
         }
         else if ( state == ContinuumProjectState.UPDATING )
         {
-            return UPDATING;
+            return "<img src=\"" + contextPath + "/images/checkingout.gif\" alt=\"" +
UPDATING + "\" title=\"" +
+                UPDATING + "\" border=\"0\" />";
         }
         else if ( state == ContinuumProjectState.CHECKING_OUT )
         {
-            return CHECKING_OUT;
+            return "<img src=\"" + contextPath + "/images/checkingout.gif\" alt=\"" +
CHECKING_OUT + "\" title=\"" +
+                CHECKING_OUT + "\" border=\"0\" />";
         }
         else
         {

Modified: maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/StateCell.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/StateCell.java?rev=575316&r1=575315&r2=575316&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/StateCell.java
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/StateCell.java
Thu Sep 13 06:49:38 2007
@@ -61,6 +61,8 @@
             case ContinuumProjectState.FAILED:
             case ContinuumProjectState.ERROR:
             case ContinuumProjectState.BUILDING:
+            case ContinuumProjectState.UPDATING:
+            case ContinuumProjectState.CHECKING_OUT:
             {
                 String state = StateGenerator.generate( project.getState(), tableModel.getContext().getContextPath()
);
 



Mime
View raw message