Added odp icon
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@117213 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
9349f25f35
commit
484b4c0525
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
Loading…
Reference in New Issue