diff --git a/.settings/org.eclipse.wst.common.component b/.settings/org.eclipse.wst.common.component
index fecffa8..6fbb2ac 100644
--- a/.settings/org.eclipse.wst.common.component
+++ b/.settings/org.eclipse.wst.common.component
@@ -5,6 +5,12 @@
+
+ uses
+
+
+ uses
+
diff --git a/pom.xml b/pom.xml
index a686800..782d0d6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -11,7 +11,7 @@
org.gcube.portlets.user
workspace
war
- 6.11.0-SNAPSHOT
+ 6.12.0-SNAPSHOT
gCube Workspace Portlet
gCube Workspace Portlet is a web-gui to manage the gCube workspace a collaborative area where users can exchange and organize information objects (workspace items) according to their specific needs.
@@ -41,7 +41,7 @@
org.gcube.distribution
maven-portal-bom
- LATEST
+ 2.6.0-SNAPSHOT
pom
import
@@ -56,18 +56,17 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
@@ -152,29 +151,23 @@
provided
+
+ org.gcube.portlets.user
+ workspace-tree-widget
+ [6.0.0-SNAPSHOT, 7.0.0-SNAPSHOT)
+ compile
+
+
+
org.gcube.common
home-library-model
- [1.0.0-SNAPSHOT, 2.0.0-SNAPSHOT)
provided
-
- org.gcube.common
- home-library-jcr
- [2.0.0-SNAPSHOT, 3.0.0-SNAPSHOT)
- provided
-
-
- asm-debug-all
- org.ow2.asm
-
-
-
org.gcube.common
home-library
- [2.0.0-SNAPSHOT, 3.0.0-SNAPSHOT)
provided
@@ -183,6 +176,11 @@
+
+ org.gcube.common
+ home-library-jcr
+ provided
+
com.liferay.portal
@@ -196,6 +194,14 @@
provided
+
+
+ org.gcube.portlets.widgets
+ wsmail-widget
+ [1.1.0-SNAPSHOT, 2.0.0-SNAPSHOT)
+ compile
+
+
log4j
@@ -212,41 +218,6 @@
runtime
-
- org.gcube.portlets.user
- workspace-tree-widget
- [6.0.0-SNAPSHOT, 7.0.0-SNAPSHOT)
- compile
-
-
-
-
- org.gcube.portlets.widgets
- workspace-light-tree
- [2.0.0-SNAPSHOT, 3.0.0-SNAPSHOT)
- compile
-
-
-
- org.gcube.portlets.widgets
- fileupload-progress-bar
- [1.0.0-SNAPSHOT, 2.0.0-SNAPSHOT)
- compile
-
-
- gwt-user
- com.google.gwt
-
-
-
-
-
- org.gcube.portlets.widgets
- wsmail-widget
- [1.1.0-SNAPSHOT, 2.0.0-SNAPSHOT)
- compile
-
-
junit
junit
diff --git a/src/main/java/org/gcube/portlets/user/workspace/client/WorkspacePortlet.java b/src/main/java/org/gcube/portlets/user/workspace/client/WorkspacePortlet.java
index 1537a60..38b448a 100644
--- a/src/main/java/org/gcube/portlets/user/workspace/client/WorkspacePortlet.java
+++ b/src/main/java/org/gcube/portlets/user/workspace/client/WorkspacePortlet.java
@@ -14,7 +14,7 @@ import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.RootPanel;
/**
- *
+ *
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
*
*/
@@ -22,15 +22,15 @@ public class WorkspacePortlet implements EntryPoint {
/**
* This is the entry point method.
*/
-
+
AppController appController;
-
+
public void onModuleLoad() {
AppControllerExplorer appControllerExplorer = new AppControllerExplorer();
appController = new AppController(appControllerExplorer);
appController.go(RootPanel.get(ConstantsPortlet.WORKSPACEDIV));
-
+
Window.addResizeHandler(new ResizeHandler() {
@Override
public void onResize(ResizeEvent event) {
@@ -38,35 +38,35 @@ public class WorkspacePortlet implements EntryPoint {
updateSize();
}
});
-
+
updateSize();
showGuidedTour();
}
-
+
/**
* Update window size
*/
public void updateSize(){
-
+
RootPanel workspace = RootPanel.get(ConstantsPortlet.WORKSPACEDIV);
int topBorder = workspace.getAbsoluteTop();
int leftBorder = workspace.getAbsoluteLeft();
int footer = 85; //footer is bottombar + sponsor
-
-// int rootHeight = (Window.getClientHeight() - topBorder - 4) ;// - ((footer == null)?0:(footer.getOffsetHeight()-15));
+
+// int rootHeight = (Window.getClientHeight() - topBorder - 4) ;// - ((footer == null)?0:(footer.getOffsetHeight()-15));
// if (rootHeight > 550)
// rootHeight = 550;
-
- int rootHeight = (Window.getClientHeight() - topBorder - 4 - footer);// - ((footer == null)?0:(footer.getOffsetHeight()-15));
+
+ int rootHeight = Window.getClientHeight() - topBorder - 4 - footer;// - ((footer == null)?0:(footer.getOffsetHeight()-15));
if (rootHeight < 550)
rootHeight = 550;
-
+
int rootWidth = Window.getClientWidth() - 2* leftBorder; //- rightScrollBar;
System.out.println("New workspace dimension Height: "+rootHeight+" Width: "+rootWidth);
appController.getMainPanel().setHeight(rootHeight);
appController.getMainPanel().setWidth(rootWidth);
}
-
+
private void showGuidedTour() {
GWT.runAsync(GCUBEGuidedTour.class, new RunAsyncCallback() {
public void onSuccess() {
diff --git a/src/main/resources/org/gcube/portlets/user/workspace/WorkspacePortlet.gwt.xml b/src/main/resources/org/gcube/portlets/user/workspace/WorkspacePortlet.gwt.xml
index 46081ba..cf118b8 100644
--- a/src/main/resources/org/gcube/portlets/user/workspace/WorkspacePortlet.gwt.xml
+++ b/src/main/resources/org/gcube/portlets/user/workspace/WorkspacePortlet.gwt.xml
@@ -18,13 +18,8 @@
-
-
-
-
-
diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml
index 8a8b530..852085a 100644
--- a/src/main/webapp/WEB-INF/web.xml
+++ b/src/main/webapp/WEB-INF/web.xml
@@ -10,27 +10,11 @@
WorkspacePortlet.html
-
-
-
- uploadprogress
- org.gcube.portlets.widgets.fileupload.server.UploadProgressServlet
-
-
-
-
-
- upload
- org.gcube.portlets.widgets.fileupload.server.UploadServlet
-
-
workspacesharing
org.gcube.portlets.widgets.workspacesharingwidget.server.WorkspaceSharingServiceImpl
-
-
UploadService
org.gcube.portlets.user.workspace.server.UploadServlet
@@ -63,7 +47,6 @@
org.gcube.portlets.widgets.sessionchecker.server.SessionCheckerServiceImpl
-
ImageService
org.gcube.portlets.user.workspace.server.ImageServlet
@@ -89,7 +72,19 @@
workspaceUploaderWsUtil
org.gcube.portlets.widgets.workspaceuploader.server.WorkspaceUploaderWsUtil
-
+
+
+ jUnitHostImpl
+ com.google.gwt.junit.server.JUnitHostImpl
+
+
+
+
+ quicktourServlet
+ org.gcube.portlets.widgets.guidedtour.server.TourServiceImpl
+
+
+
workspaceUploaderWsUtil
/workspace/workspaceUploaderWsUtil
@@ -110,22 +105,16 @@
/workspace/workspaceUploaderService
-
-
-
- ImageService
- /workspace/ImageService
-
-
WorkspaceService
/workspace/WorkspaceService
- uploadprogress
- /workspace/uploadprogress
+ ImageService
+ /workspace/ImageService
+
checkServlet
/workspace/checksession
@@ -136,17 +125,6 @@
/workspace/mailWisdgetServlet
-
-
- WorkspaceLightService
- org.gcube.portlets.widgets.lighttree.server.WorkspaceServiceImpl
-
-
-
- WorkspaceLightService
- /workspace/WorkspaceLightService
-
-
LocalUploadService
/workspace/LocalUploadService
@@ -167,14 +145,7 @@
/workspace/workspacesharing
-
- upload
- /FileUpload/upload
-
-
- jUnitHostImpl
- com.google.gwt.junit.server.JUnitHostImpl
-
+
jUnitHostImpl
/org.gcube.portlets.user.workspace.WorkspacePortletJUnit/junithost/*
@@ -189,10 +160,10 @@
/org.gcube.portlets.user.workspace.WorkspacePortletJUnit/DownloadService
-
- WorkspaceService
- /org.gcube.portlets.user.workspace.WorkspacePortletJUnit/WorkspaceService
-
+
+
+
+
ImageService
@@ -203,11 +174,7 @@
UploadService
/org.gcube.portlets.user.workspace.WorkspacePortletJUnit/UploadService
-
-
- quicktourServlet
- org.gcube.portlets.widgets.guidedtour.server.TourServiceImpl
-
+
quicktourServlet