[jbpm-commits] JBoss JBPM SVN: r3180 - projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/metric.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Dec 3 08:17:22 EST 2008


Author: heiko.braun at jboss.com
Date: 2008-12-03 08:17:22 -0500 (Wed, 03 Dec 2008)
New Revision: 3180

Modified:
   projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/metric/MetricOverviewEditor.java
Log:
Get report URL form UrlBuilder

Modified: projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/metric/MetricOverviewEditor.java
===================================================================
--- projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/metric/MetricOverviewEditor.java	2008-12-03 12:25:57 UTC (rev 3179)
+++ projects/gwt-console/trunk/war/src/main/java/org/jboss/bpm/console/client/metric/MetricOverviewEditor.java	2008-12-03 13:17:22 UTC (rev 3180)
@@ -22,20 +22,14 @@
 package org.jboss.bpm.console.client.metric;
 
 import com.google.gwt.user.client.ui.Frame;
+import com.gwtext.client.core.EventObject;
 import com.gwtext.client.widgets.*;
-import com.gwtext.client.widgets.event.PanelListenerAdapter;
 import com.gwtext.client.widgets.event.ButtonListenerAdapter;
+import com.gwtext.client.widgets.event.PanelListenerAdapter;
 import com.gwtext.client.widgets.layout.FitLayout;
-import com.gwtext.client.widgets.layout.ColumnLayoutData;
-import com.gwtext.client.widgets.layout.ColumnLayout;
-import com.gwtext.client.core.EventObject;
 import org.jboss.bpm.console.client.Editor;
 import org.jboss.bpm.console.client.MainView;
-import org.jboss.bpm.console.client.UIConstants;
-import org.jboss.bpm.console.client.widgets.HelpPanel;
-import org.jboss.bpm.console.client.widgets.TeaserPanel;
-import org.jboss.bpm.console.client.model.HelpDAO;
-import org.jboss.bpm.console.client.model.DAOFactory;
+import org.jboss.bpm.console.client.util.ConsoleLog;
 
 /**
  * @author Heiko.Braun <heiko.braun at jboss.com>
@@ -64,9 +58,11 @@
 
                public void onRender(Component component)
                {
-                  //final String reportUrl= view.getUrlBuilder().getDefaultReportUrl();
-                  final String url = "http://localhost:8080/birt-viewer/preview?__report=process_activity.rptdesign";
-                  final Frame frame = new Frame(url);
+                  final String reportUrl= view.getUrlBuilder().getDefaultReportUrl();
+                  ConsoleLog.debug("Report resource:" + reportUrl);
+                  
+                  //final String url = "http://localhost:8080/birt-viewer/preview?__report=process_activity.rptdesign";
+                  final Frame frame = new Frame(reportUrl);
                   frame.setWidth("676");
                   frame.setHeight("448");
 
@@ -86,7 +82,7 @@
 
                            public void onClick(Button button, EventObject eventObject)
                            {
-                              frame.setUrl(url);
+                              frame.setUrl(reportUrl);
                            }
                         })
                   );




More information about the jbpm-commits mailing list