Author: rob.stryker(a)jboss.com
Date: 2007-11-01 12:58:29 -0400 (Thu, 01 Nov 2007)
New Revision: 4637
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/providers/events/PackagesPublishLabelProvider.java
Log:
UI error in event log - status object was shown as tostring
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/providers/events/PackagesPublishLabelProvider.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/providers/events/PackagesPublishLabelProvider.java 2007-11-01
16:43:55 UTC (rev 4636)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/providers/events/PackagesPublishLabelProvider.java 2007-11-01
16:58:29 UTC (rev 4637)
@@ -30,6 +30,7 @@
import org.eclipse.wst.server.core.model.ServerBehaviourDelegate;
import org.jboss.ide.eclipse.as.core.extensions.events.EventLogModel.EventLogTreeItem;
import org.jboss.ide.eclipse.as.core.publishers.PublisherEventLogger;
+import
org.jboss.ide.eclipse.as.core.publishers.PublisherEventLogger.PublishUtilStatusWrapper;
import org.jboss.ide.eclipse.as.ui.JBossServerUISharedImages;
import org.jboss.ide.eclipse.as.ui.views.server.extensions.IEventLogLabelProvider;
@@ -47,6 +48,7 @@
supported.add(PublisherEventLogger.FILE_COPPIED_EVENT);
supported.add(PublisherEventLogger.FILE_DELETED_EVENT);
supported.add(PublisherEventLogger.FOLDER_DELETED_EVENT);
+ supported.add(PublisherEventLogger.PUBLISH_UTIL_STATUS_WRAPPER_TYPE);
}
protected void loadPropertyMap() {
propertyToMessageMap.put(PublisherEventLogger.SOURCE_PROPERTY, "Source");
@@ -134,6 +136,13 @@
public String getText(EventLogTreeItem item) {
String type = item.getSpecificType();
+ if( type.equals(PublisherEventLogger.PUBLISH_UTIL_STATUS_WRAPPER_TYPE)) {
+ Object o = item.getData();
+ if( o == null || !(o instanceof IStatus ))
+ return "Unknown Status Event: " + o;
+ return ((IStatus)o).getMessage();
+ }
+
if( type.equals(PublisherEventLogger.ROOT_EVENT)) {
return "Publishing to server";
}