Author: chris.laprun(a)jboss.com
Date: 2007-05-16 16:25:06 -0400 (Wed, 16 May 2007)
New Revision: 7267
Modified:
trunk/portlet/src/main/org/jboss/portal/portlet/StateEvent.java
Log:
- Added toString so that debugging is easier.
Modified: trunk/portlet/src/main/org/jboss/portal/portlet/StateEvent.java
===================================================================
--- trunk/portlet/src/main/org/jboss/portal/portlet/StateEvent.java 2007-05-16 18:47:44
UTC (rev 7266)
+++ trunk/portlet/src/main/org/jboss/portal/portlet/StateEvent.java 2007-05-16 20:25:06
UTC (rev 7267)
@@ -36,8 +36,8 @@
{
private final PortletContext context;
private final StateEventType type;
- public static final StateEventType PORTLET_CLONED_EVENT = new StateEventType();
- public static final StateEventType PORTLET_MODIFIED_EVENT = new StateEventType();
+ public static final StateEventType PORTLET_CLONED_EVENT = new
StateEventType("Portlet Cloned Event");
+ public static final StateEventType PORTLET_MODIFIED_EVENT = new
StateEventType("Portlet Modified Event");
public StateEvent(PortletContext context, StateEventType type)
{
@@ -59,8 +59,16 @@
public static final class StateEventType
{
- private StateEventType()
+ private String name;
+
+ private StateEventType(String name)
{
+ this.name = name;
}
+
+ public String toString()
+ {
+ return name;
+ }
}
}