From 4057cea5d70ebdbc4850c21040dbb6a823d93091 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Tue, 1 Oct 2019 16:56:20 +0000 Subject: [PATCH] ref 12594: Provide DM Users with runtime execution information https://support.d4science.org/issues/12594 Added service info[ticket #12594] Updated the resources check on IS [ticket #17569] git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/statistical-algorithms-importer@181904 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../client/dminfo/ServiceInfoDialog.java | 24 +++---------------- .../client/dminfo/ServiceInfoPanel.java | 3 +++ 2 files changed, 6 insertions(+), 21 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/client/dminfo/ServiceInfoDialog.java b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/client/dminfo/ServiceInfoDialog.java index e23b99d..6e0abed 100644 --- a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/client/dminfo/ServiceInfoDialog.java +++ b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/client/dminfo/ServiceInfoDialog.java @@ -2,13 +2,9 @@ package org.gcube.portlets.user.statisticalalgorithmsimporter.client.dminfo; import org.gcube.portlets.user.statisticalalgorithmsimporter.shared.Constants; -import com.google.gwt.event.logical.shared.ResizeEvent; -import com.google.gwt.event.logical.shared.ResizeHandler; import com.google.gwt.event.shared.EventBus; import com.sencha.gxt.widget.core.client.Dialog; import com.sencha.gxt.widget.core.client.container.BoxLayoutContainer.BoxLayoutPack; -import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; -import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData; /** * @@ -31,7 +27,7 @@ public class ServiceInfoDialog extends Dialog { private void init() { setWidth("640px"); - setHeight("480px"); + setHeight("500px"); setResizable(true); setHeadingText(Constants.DATA_MINER_SERVICE_INFO_TITLE); setModal(true); @@ -40,24 +36,10 @@ public class ServiceInfoDialog extends Dialog { setButtonAlign(BoxLayoutPack.CENTER); } - private void create() { - VerticalLayoutContainer vc = new VerticalLayoutContainer(); - vc.addResizeHandler(new ResizeHandler() { - - @Override - public void onResize(ResizeEvent event) { - manageResize(event); - } - }); + private void create() { serviceInfoPanel=new ServiceInfoPanel(eventBus); - vc.add(serviceInfoPanel, new VerticalLayoutData(-1,-1)); - add(vc); + add(serviceInfoPanel); } - private void manageResize(ResizeEvent event){ - serviceInfoPanel.setHeight(String.valueOf(event.getHeight())+"px"); - serviceInfoPanel.setWidth(String.valueOf(event.getWidth())+"px"); - forceLayout(); - } } \ No newline at end of file diff --git a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/client/dminfo/ServiceInfoPanel.java b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/client/dminfo/ServiceInfoPanel.java index 8ad8672..020c228 100644 --- a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/client/dminfo/ServiceInfoPanel.java +++ b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/client/dminfo/ServiceInfoPanel.java @@ -125,6 +125,7 @@ public class ServiceInfoPanel extends FramedPanel { configurationFieldSet.setHeadingText(Constants.DATA_MINER_RUNTIME_FEATURE); configurationFieldSet.setCollapsible(true); configurationFieldSet.add(environmentVBox); + configurationFieldSet.getCollapseButton().getElement().getStyle().setMarginTop(11, Unit.PX); configurationFieldSet.getElement().getStyle().setMarginRight(20, Unit.PX); return configurationFieldSet; } catch (Throwable e) { @@ -206,6 +207,8 @@ public class ServiceInfoPanel extends FramedPanel { groupingView.groupBy(categoryCol); groupingView.setForceFit(true); groupingView.setAutoExpandColumn(valueCol); + groupingView.setColumnLines(true); + groupingView.setEmptyText("No info retrieved"); // grid.getView().setAutoFill(true);