You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2010/10/31 19:13:57 UTC
svn commit: r1029437 -
/wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/markup/html/PackageResource.java
Author: mgrigorov
Date: Sun Oct 31 18:13:57 2010
New Revision: 1029437
URL: http://svn.apache.org/viewvc?rev=1029437&view=rev
Log:
WICKET-3135 Improve JavaScriptPackageResource#toString() to show filename instead of default Object#toString()
Add implementation of PackageResource#toString() similar to ResourceReference#toString()
Modified:
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/markup/html/PackageResource.java
Modified: wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/markup/html/PackageResource.java
URL: http://svn.apache.org/viewvc/wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/markup/html/PackageResource.java?rev=1029437&r1=1029436&r2=1029437&view=diff
==============================================================================
--- wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/markup/html/PackageResource.java (original)
+++ wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/markup/html/PackageResource.java Sun Oct 31 18:13:57 2010
@@ -669,4 +669,23 @@ public class PackageResource extends Web
return guard.accept(scope, path);
}
+
+ @Override
+ public String toString()
+ {
+ StringBuilder result = new StringBuilder();
+ result.append('[')
+ .append(getClass().getSimpleName())
+ .append(' ')
+ .append("name = ")
+ .append(getPath())
+ .append(", scope = ")
+ .append(scopeName)
+ .append(", locale = ")
+ .append(locale)
+ .append(", style = ")
+ .append(style)
+ .append(']');
+ return result.toString();
+ }
}