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 5a2a978..58ccc56 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 @@ -188,6 +188,9 @@ public interface Icons extends ClientBundle { @Source("icons/paste.png") ImageResource paste(); + + @Source("icons/icon-odp.gif") + ImageResource odp(); @Source("icons/refresh.gif") ImageResource refresh(); 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 5ab02dc..5b97544 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 @@ -38,12 +38,18 @@ public class Resources { private static final String PPT = "vnd.ms-powerpoint"; private static final String PPTX = "vnd.openxmlformats-officedocument.presentationml.presentation"; private static final String XSLX = "vnd.openxmlformats-officedocument.spreadsheetml.sheet"; - + private static final String ODP = "vnd.oasis.opendocument.presentation"; + public static AbstractImagePrototype getCloudDriveIcon(){ return AbstractImagePrototype.create(ICONS.cloudDrive()); } + public static AbstractImagePrototype getIconOdp(){ + + return AbstractImagePrototype.create(ICONS.odp()); + } + public static AbstractImagePrototype getIconTable(){ return AbstractImagePrototype.create(ICONS.table()); @@ -628,6 +634,8 @@ public class Resources { return Resources.getIconTxt(); }else if (fileExtension.contains(PPT) || fileExtension.equals(PPTX)) { return Resources.getIconPpt(); + } else if(fileExtension.contains(ODP)){ + return Resources.getIconOdp(); }else if (fileExtension.contains(EXCEL) || fileExtension.contains(XSLX)) { return Resources.getIconExcel(); } diff --git a/src/main/java/org/gcube/portlets/user/workspace/client/resources/icons/icon-odp.gif b/src/main/java/org/gcube/portlets/user/workspace/client/resources/icons/icon-odp.gif new file mode 100644 index 0000000..1f6dcb4 Binary files /dev/null and b/src/main/java/org/gcube/portlets/user/workspace/client/resources/icons/icon-odp.gif differ