From fd941970351f5ef09a7adbf48cfdfe3f49e71782 Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Tue, 29 Sep 2015 14:37:06 +0000 Subject: [PATCH] Replaced the Workspace light tree with workspace explorer #804 git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/reports@119165 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../client/ReportGenerator.java | 30 ------------------- .../client/ReportStructurePanel.java | 1 - .../client/WorkspacePanel.java | 3 -- .../server/servlet/ReportServiceImpl.java | 4 +-- 4 files changed, 2 insertions(+), 36 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/reportgenerator/client/ReportGenerator.java b/src/main/java/org/gcube/portlets/user/reportgenerator/client/ReportGenerator.java index 7d26542..30d9bb2 100644 --- a/src/main/java/org/gcube/portlets/user/reportgenerator/client/ReportGenerator.java +++ b/src/main/java/org/gcube/portlets/user/reportgenerator/client/ReportGenerator.java @@ -3,9 +3,6 @@ package org.gcube.portlets.user.reportgenerator.client; import org.gcube.portlets.user.reportgenerator.client.Presenter.Presenter; import com.google.gwt.core.client.EntryPoint; -import com.google.gwt.event.logical.shared.ResizeEvent; -import com.google.gwt.event.logical.shared.ResizeHandler; -import com.google.gwt.user.client.Window; import com.google.gwt.user.client.ui.CellPanel; import com.google.gwt.user.client.ui.HTML; import com.google.gwt.user.client.ui.HorizontalPanel; @@ -131,33 +128,6 @@ public class ReportGenerator implements EntryPoint { // Add image and button to the RootPanel RootPanel.get("ReportGeneratorDIV").add(mainLayout); - -// int scrollerWidth = Window.getClientWidth()- TEMPLATE_LEFT - 30; -// bottomScrollerPanel.setPixelSize(scrollerWidth, 1000); -// -// if ( Window.getClientWidth() < 1070 ) { -// int scrollerWidth2 = Window.getClientWidth()- TEMPLATE_LEFT; -// bottomScrollerPanel.setPixelSize(scrollerWidth2, 1000); -// } -// -// Window.addResizeHandler(new ResizeHandler() { -// public void onResize(ResizeEvent event) { -// int scrollerHeight = event.getHeight() - bottomScrollerPanel.getAbsoluteTop(); -// if (scrollerHeight < toolBoxPanel.getTreePanelHeight()) -// scrollerHeight = toolBoxPanel.getTreePanelHeight(); -// int scrollerWidth = Window.getClientWidth()- TEMPLATE_LEFT - 30; -// bottomScrollerPanel.setPixelSize(scrollerWidth , 1000); -// -// -// if ( Window.getClientWidth() < 1060 ) { -// int scrollerWidth2 = Window.getClientWidth()- TEMPLATE_LEFT; -// bottomScrollerPanel.setPixelSize(scrollerWidth2, 1000); -// } -// } -// -// }); - //presenter.showExportPanel("", "", null, ""); - //showGuidedTour() ; } diff --git a/src/main/java/org/gcube/portlets/user/reportgenerator/client/ReportStructurePanel.java b/src/main/java/org/gcube/portlets/user/reportgenerator/client/ReportStructurePanel.java index 1c96e48..e1595d4 100644 --- a/src/main/java/org/gcube/portlets/user/reportgenerator/client/ReportStructurePanel.java +++ b/src/main/java/org/gcube/portlets/user/reportgenerator/client/ReportStructurePanel.java @@ -4,7 +4,6 @@ import java.util.HashMap; import java.util.List; import java.util.Vector; -import org.gcube.application.reporting.component.ReportSequence; import org.gcube.portlets.d4sreporting.common.shared.AttributeArea; import org.gcube.portlets.d4sreporting.common.shared.BasicComponent; import org.gcube.portlets.d4sreporting.common.shared.BasicSection; diff --git a/src/main/java/org/gcube/portlets/user/reportgenerator/client/WorkspacePanel.java b/src/main/java/org/gcube/portlets/user/reportgenerator/client/WorkspacePanel.java index 8721f59..27690df 100644 --- a/src/main/java/org/gcube/portlets/user/reportgenerator/client/WorkspacePanel.java +++ b/src/main/java/org/gcube/portlets/user/reportgenerator/client/WorkspacePanel.java @@ -9,11 +9,8 @@ import org.gcube.portlets.user.reportgenerator.client.uibinder.OpenOptions; import org.gcube.portlets.user.reportgenerator.client.uibinder.OpenOptionsVME; import org.gcube.portlets.user.reportgenerator.client.uibinder.ShowLoading; -import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.ui.Composite; import com.google.gwt.user.client.ui.FlowPanel; -import com.google.gwt.user.client.ui.HorizontalPanel; -import com.google.gwt.user.client.ui.Image; import com.google.gwt.user.client.ui.Widget; diff --git a/src/main/java/org/gcube/portlets/user/reportgenerator/server/servlet/ReportServiceImpl.java b/src/main/java/org/gcube/portlets/user/reportgenerator/server/servlet/ReportServiceImpl.java index 0d88155..189f0c0 100644 --- a/src/main/java/org/gcube/portlets/user/reportgenerator/server/servlet/ReportServiceImpl.java +++ b/src/main/java/org/gcube/portlets/user/reportgenerator/server/servlet/ReportServiceImpl.java @@ -40,7 +40,8 @@ import org.gcube.application.framework.accesslogger.library.impl.AccessLogger; import org.gcube.application.framework.core.session.ASLSession; import org.gcube.application.framework.core.session.SessionManager; import org.gcube.application.reporting.reader.ModelReader; -import org.gcube.application.rsg.client.*; +import org.gcube.application.rsg.client.RsgReadClient; +import org.gcube.application.rsg.client.RsgWriteClient; import org.gcube.application.rsg.client.support.ClientException; import org.gcube.application.rsg.service.dto.ReportEntry; import org.gcube.application.rsg.service.dto.ReportType; @@ -53,7 +54,6 @@ import org.gcube.applicationsupportlayer.social.ApplicationNotificationsManager; import org.gcube.applicationsupportlayer.social.NotificationsManager; import org.gcube.common.encryption.StringEncrypter; import org.gcube.common.homelibary.model.items.type.FolderItemType; -import org.gcube.common.homelibary.model.items.type.NodeProperty; import org.gcube.common.homelibary.model.items.type.WorkspaceItemType; import org.gcube.common.homelibrary.home.HomeLibrary; import org.gcube.common.homelibrary.home.exceptions.HomeNotFoundException;