diff --git a/pom.xml b/pom.xml
index 38f5a66..fb99e3c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -76,13 +76,13 @@
org.gcube.portlets.user
home-library
[4.3.0-SNAPSHOT, 5.0.0-SNAPSHOT)
-
+ provided
org.gcube.portlets.user
home-library-jcr
[1.3.0-SNAPSHOT, 2.0.0-SNAPSHOT)
-
+ provided
commons-fileupload
diff --git a/src/main/java/org/gcube/portlets/user/workspace/client/resources/Icons.java b/src/main/java/org/gcube/portlets/user/workspace/client/resources/Icons.java
index ef553ab..41c9d0a 100644
--- a/src/main/java/org/gcube/portlets/user/workspace/client/resources/Icons.java
+++ b/src/main/java/org/gcube/portlets/user/workspace/client/resources/Icons.java
@@ -253,5 +253,8 @@ public interface Icons extends ClientBundle {
@Source("icons/info-icon.png")
ImageResource info();
+
+ @Source("icons/mime/csv.gif")
+ ImageResource csv();
}
diff --git a/src/main/java/org/gcube/portlets/user/workspace/client/resources/Resources.java b/src/main/java/org/gcube/portlets/user/workspace/client/resources/Resources.java
index d0c0e53..22abf12 100644
--- a/src/main/java/org/gcube/portlets/user/workspace/client/resources/Resources.java
+++ b/src/main/java/org/gcube/portlets/user/workspace/client/resources/Resources.java
@@ -17,6 +17,7 @@ public class Resources {
private static final String XML = "xml";
private static final String JAVA = "java";
private static final String HTML = "html";
+ private static final String XHTLXML = "xhtml+xml";
private static final String GIF = "gif";
private static final String PNG = "png";
private static final String JPEG = "jpeg";
@@ -31,7 +32,8 @@ public class Resources {
private static final String MPEG = "mpeg";
private static final String SWF = "swf";
private static final String FLV = "flv";
- private static final String AVI = "avi";
+ private static final String AVI = "avi";
+ private static final Object CSV = "csv";
public static AbstractImagePrototype getIconTable(){
@@ -52,6 +54,12 @@ public class Resources {
return AbstractImagePrototype.create(ICONS.sharedFolder());
}
+
+ public static AbstractImagePrototype getIconCsv(){
+
+ return AbstractImagePrototype.create(ICONS.csv());
+ }
+
public static AbstractImagePrototype getCloseIcon(){
@@ -431,10 +439,14 @@ public class Resources {
return Resources.getIconMovie();
} else if (JPEG.equals(fileExtension) || JPG.equals(fileExtension)) {
return Resources.getIconJpeg();
+ } else if (XHTLXML.equals(fileExtension)) {
+ return Resources.getIconXml();
} else if (MSWORD.equals(fileExtension) || MSWORD.equals(fileExtension)) {
return Resources.getIconDoc();
} else if (XML.equals(fileExtension)) {
return Resources.getIconXml();
+ } else if (CSV.equals(fileExtension)) {
+ return Resources.getIconCsv();
} else if (JAVA.equals(fileExtension)) {
return Resources.getIconJava();
} else if (HTML.equals(fileExtension)) {
diff --git a/src/main/java/org/gcube/portlets/user/workspace/client/resources/icons/mime/csv.gif b/src/main/java/org/gcube/portlets/user/workspace/client/resources/icons/mime/csv.gif
new file mode 100644
index 0000000..4348b7f
Binary files /dev/null and b/src/main/java/org/gcube/portlets/user/workspace/client/resources/icons/mime/csv.gif differ
diff --git a/src/main/java/org/gcube/portlets/user/workspace/client/view/tree/ContextMenuTree.java b/src/main/java/org/gcube/portlets/user/workspace/client/view/tree/ContextMenuTree.java
index 93c364a..bdbb028 100644
--- a/src/main/java/org/gcube/portlets/user/workspace/client/view/tree/ContextMenuTree.java
+++ b/src/main/java/org/gcube/portlets/user/workspace/client/view/tree/ContextMenuTree.java
@@ -583,6 +583,8 @@ public class ContextMenuTree {
contextMenu.getItemByItemId(ConstantsExplorer.UPA).setVisible(false); //set invisible upload archive
contextMenu.getItemByItemId(ConstantsExplorer.CLK).setVisible(false); //set invisible add url
contextMenu.getItemByItemId(ConstantsExplorer.RFH).setVisible(false); //set invisible refresh
+// contextMenu.getItemByItemId(ConstantsExplorer.SHR).setVisible(false); //set invisible share
+// contextMenu.getItemByItemId(ConstantsExplorer.USHR).setVisible(false); //set invisible unshare
contextMenu.showAt(posX, posY);
}
// treePanel.fireEvent(Events.ContextMenu);
diff --git a/src/main/java/org/gcube/portlets/user/workspace/server/GWTWorkspaceBuilder.java b/src/main/java/org/gcube/portlets/user/workspace/server/GWTWorkspaceBuilder.java
index d356640..25be691 100644
--- a/src/main/java/org/gcube/portlets/user/workspace/server/GWTWorkspaceBuilder.java
+++ b/src/main/java/org/gcube/portlets/user/workspace/server/GWTWorkspaceBuilder.java
@@ -1518,6 +1518,7 @@ public class GWTWorkspaceBuilder {
listContactsModel.add(new InfoContactModel("2", "Antonio.Test", "Antonio Gioia"));
listContactsModel.add(new InfoContactModel("3", "Fabio.Test", "Fabio Sinibaldi"));
listContactsModel.add(new InfoContactModel("4", Util.TEST_USER, Util.TEST_USER));
+ listContactsModel.add(new InfoContactModel("5", "Massimiliano.Assante", "Massimiliano Assante"));
return listContactsModel;
}