From 69597840985a1330ba541f215c9bbc8cd499978e Mon Sep 17 00:00:00 2001 From: Francesco Mangiacrapa Date: Tue, 14 Jul 2015 13:10:42 +0000 Subject: [PATCH] 224: Workspace: reinforce the set of icons for recognised items Task-Url: https://support.d4science.org/issues/224 Added icons: dvi, ps, shell, tex, zip git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@117223 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../workspace/client/resources/Icons.java | 18 +- .../workspace/client/resources/Resources.java | 749 +++++++++++++++++- .../workspace/client/resources/icons/dvi.gif | Bin 0 -> 972 bytes .../workspace/client/resources/icons/ps.gif | Bin 0 -> 990 bytes .../client/resources/icons/shell-script.png | Bin 0 -> 1062 bytes .../workspace/client/resources/icons/tex.png | Bin 0 -> 1644 bytes .../workspace/client/resources/icons/zip.gif | Bin 0 -> 173 bytes 7 files changed, 740 insertions(+), 27 deletions(-) create mode 100644 src/main/java/org/gcube/portlets/user/workspace/client/resources/icons/dvi.gif create mode 100644 src/main/java/org/gcube/portlets/user/workspace/client/resources/icons/ps.gif create mode 100644 src/main/java/org/gcube/portlets/user/workspace/client/resources/icons/shell-script.png create mode 100644 src/main/java/org/gcube/portlets/user/workspace/client/resources/icons/tex.png create mode 100644 src/main/java/org/gcube/portlets/user/workspace/client/resources/icons/zip.gif 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 58ccc56..f17b011 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 @@ -2,7 +2,6 @@ package org.gcube.portlets.user.workspace.client.resources; import com.google.gwt.resources.client.ClientBundle; import com.google.gwt.resources.client.ImageResource; -import com.google.gwt.resources.client.ClientBundle.Source; public interface Icons extends ClientBundle { @@ -341,8 +340,6 @@ public interface Icons extends ClientBundle { */ @Source("icons/undo.png") ImageResource undo(); - - /** * @return @@ -388,5 +385,20 @@ public interface Icons extends ClientBundle { @Source("icons/gcubeItem.jpeg") ImageResource gcubeItem(); + + @Source("icons/dvi.gif") + ImageResource dvi(); + + @Source("icons/ps.gif") + ImageResource postscript(); + + @Source("icons/shell-script.png") + ImageResource shell(); + + @Source("icons/tex.png") + ImageResource tex(); + + @Source("icons/zip.gif") + ImageResource zip(); } 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 5b97544..754c5b8 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 @@ -7,8 +7,9 @@ import com.google.gwt.resources.client.ImageResource; import com.google.gwt.user.client.ui.AbstractImagePrototype; /** - * @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it + * The Class Resources. * + * @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it */ public class Resources { @@ -39,610 +40,1303 @@ public class Resources { 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"; - + private static final String XTEX = "x-tex"; + private static final String ZIP = "zip"; + private static final String POSTSCRIPT = "postscript"; + private static final String DVI = "x-dvi"; + private static final String X_SH = "x-sh"; + private static final String X_SHELLSCRIPT = "x-shellscript"; + /** + * Gets the cloud drive icon. + * + * @return the cloud drive icon + */ public static AbstractImagePrototype getCloudDriveIcon(){ return AbstractImagePrototype.create(ICONS.cloudDrive()); } + /** + * Gets the icon x tex. + * + * @return the icon x tex + */ + public static AbstractImagePrototype getIconXTex(){ + + return AbstractImagePrototype.create(ICONS.tex()); + } + + /** + * Gets the icon postscript. + * + * @return the icon postscript + */ + public static AbstractImagePrototype getIconPostscript(){ + + return AbstractImagePrototype.create(ICONS.postscript()); + } + + /** + * Gets the icon dvi. + * + * @return the icon dvi + */ + public static AbstractImagePrototype getIconDvi(){ + + return AbstractImagePrototype.create(ICONS.dvi()); + } + + /** + * Gets the icon shell. + * + * @return the icon shell + */ + public static AbstractImagePrototype getIconShell(){ + + return AbstractImagePrototype.create(ICONS.shell()); + } + + /** + * Gets the icon zip. + * + * @return the icon zip + */ + public static AbstractImagePrototype getIconZip(){ + + return AbstractImagePrototype.create(ICONS.zip()); + } + + + /** + * Gets the icon odp. + * + * @return the icon odp + */ public static AbstractImagePrototype getIconOdp(){ return AbstractImagePrototype.create(ICONS.odp()); } + /** + * Gets the icon table. + * + * @return the icon table + */ public static AbstractImagePrototype getIconTable(){ return AbstractImagePrototype.create(ICONS.table()); } + /** + * Gets the icon recycle. + * + * @return the icon recycle + */ public static AbstractImagePrototype getIconRecycle(){ return AbstractImagePrototype.create(ICONS.recycle()); } + /** + * Gets the icon undo. + * + * @return the icon undo + */ public static AbstractImagePrototype getIconUndo(){ return AbstractImagePrototype.create(ICONS.undo()); } + /** + * Gets the icon link. + * + * @return the icon link + */ public static AbstractImagePrototype getIconLink(){ return AbstractImagePrototype.create(ICONS.extLink()); } + /** + * Gets the icon share link. + * + * @return the icon share link + */ public static AbstractImagePrototype getIconShareLink(){ return AbstractImagePrototype.create(ICONS.shareLink()); } + /** + * Gets the trash full. + * + * @return the trash full + */ public static AbstractImagePrototype getTrashFull(){ return AbstractImagePrototype.create(ICONS.trash_full()); } + /** + * Gets the trash empty. + * + * @return the trash empty + */ public static AbstractImagePrototype getTrashEmpty(){ return AbstractImagePrototype.create(ICONS.trash_empty()); } + /** + * Gets the icon create new. + * + * @return the icon create new + */ public static AbstractImagePrototype getIconCreateNew(){ return AbstractImagePrototype.create(ICONS.createNew()); } + /** + * Gets the icon vre folder. + * + * @return the icon vre folder + */ public static AbstractImagePrototype getIconVREFolder(){ return AbstractImagePrototype.create(ICONS.vreFolder()); } + /** + * Gets the icon ppt. + * + * @return the icon ppt + */ public static AbstractImagePrototype getIconPpt(){ return AbstractImagePrototype.create(ICONS.ppt()); } + /** + * Gets the icon excel. + * + * @return the icon excel + */ public static AbstractImagePrototype getIconExcel(){ return AbstractImagePrototype.create(ICONS.excel()); } + /** + * Gets the icon users. + * + * @return the icon users + */ public static AbstractImagePrototype getIconUsers(){ return AbstractImagePrototype.create(ICONS.users()); } + /** + * Gets the icon gcube item. + * + * @return the icon gcube item + */ public static AbstractImagePrototype getIconGcubeItem(){ return AbstractImagePrototype.create(ICONS.gcubeItem()); } + /** + * Gets the icon share user. + * + * @return the icon share user + */ public static AbstractImagePrototype getIconShareUser(){ return AbstractImagePrototype.create(ICONS.user()); } + /** + * Gets the icon share group. + * + * @return the icon share group + */ public static AbstractImagePrototype getIconShareGroup(){ return AbstractImagePrototype.create(ICONS.groupusers()); } + /** + * Gets the icon special folder. + * + * @return the icon special folder + */ public static AbstractImagePrototype getIconSpecialFolder(){ return AbstractImagePrototype.create(ICONS.specialFolder()); } + /** + * Gets the icon administrator. + * + * @return the icon administrator + */ public static AbstractImagePrototype getIconAdministrator(){ return AbstractImagePrototype.create(ICONS.administrator()); } + /** + * Gets the icon cut. + * + * @return the icon cut + */ public static AbstractImagePrototype getIconCut(){ return AbstractImagePrototype.create(ICONS.cut()); } + /** + * Gets the icon info. + * + * @return the icon info + */ public static AbstractImagePrototype getIconInfo(){ return AbstractImagePrototype.create(ICONS.info()); } + /** + * Gets the icon shared folder. + * + * @return the icon shared folder + */ public static AbstractImagePrototype getIconSharedFolder(){ return AbstractImagePrototype.create(ICONS.sharedFolder()); } + /** + * Gets the icon csv. + * + * @return the icon csv + */ public static AbstractImagePrototype getIconCsv(){ return AbstractImagePrototype.create(ICONS.csv()); } + /** + * Gets the icon read. + * + * @return the icon read + */ public static AbstractImagePrototype getIconRead(){ return AbstractImagePrototype.create(ICONS.read()); } + /** + * Gets the icon not read. + * + * @return the icon not read + */ public static AbstractImagePrototype getIconNotRead(){ return AbstractImagePrototype.create(ICONS.notread()); } + /** + * Gets the close icon. + * + * @return the close icon + */ public static AbstractImagePrototype getCloseIcon(){ return AbstractImagePrototype.create(ICONS.close()); } + /** + * Gets the icon gif. + * + * @return the icon gif + */ public static AbstractImagePrototype getIconGif(){ return AbstractImagePrototype.create(ICONS.gif()); } + /** + * Gets the icon jpeg. + * + * @return the icon jpeg + */ public static AbstractImagePrototype getIconJpeg(){ return AbstractImagePrototype.create(ICONS.jpeg()); } + /** + * Gets the icon svg. + * + * @return the icon svg + */ public static AbstractImagePrototype getIconSvg(){ return AbstractImagePrototype.create(ICONS.svg()); } + /** + * Gets the icon png. + * + * @return the icon png + */ public static AbstractImagePrototype getIconPng(){ return AbstractImagePrototype.create(ICONS.png()); } + /** + * Gets the icon tiff. + * + * @return the icon tiff + */ public static AbstractImagePrototype getIconTiff(){ return AbstractImagePrototype.create(ICONS.tiff()); } + /** + * Gets the icon pdf. + * + * @return the icon pdf + */ public static AbstractImagePrototype getIconPdf(){ return AbstractImagePrototype.create(ICONS.pdf()); } + /** + * Gets the icon xml. + * + * @return the icon xml + */ public static AbstractImagePrototype getIconXml(){ return AbstractImagePrototype.create(ICONS.xml()); } + /** + * Gets the icon html. + * + * @return the icon html + */ public static AbstractImagePrototype getIconHtml(){ return AbstractImagePrototype.create(ICONS.html()); } + /** + * Gets the icon java. + * + * @return the icon java + */ public static AbstractImagePrototype getIconJava(){ return AbstractImagePrototype.create(ICONS.java()); } + /** + * Gets the icon doc. + * + * @return the icon doc + */ public static AbstractImagePrototype getIconDoc(){ return AbstractImagePrototype.create(ICONS.doc()); } + /** + * Gets the icon txt. + * + * @return the icon txt + */ public static AbstractImagePrototype getIconTxt(){ return AbstractImagePrototype.create(ICONS.txt()); } + /** + * Gets the icon movie. + * + * @return the icon movie + */ public static AbstractImagePrototype getIconMovie(){ return AbstractImagePrototype.create(ICONS.movie()); } + /** + * Gets the icon add folder. + * + * @return the icon add folder + */ public static AbstractImagePrototype getIconAddFolder(){ return AbstractImagePrototype.create(ICONS.addFolder()); } + /** + * Gets the icon add folder32. + * + * @return the icon add folder32 + */ public static AbstractImagePrototype getIconAddFolder32(){ return AbstractImagePrototype.create(ICONS.addFolder32()); } + /** + * Gets the icon rename item. + * + * @return the icon rename item + */ public static AbstractImagePrototype getIconRenameItem(){ return AbstractImagePrototype.create(ICONS.renameItem()); } + /** + * Gets the icon rename item32. + * + * @return the icon rename item32 + */ public static AbstractImagePrototype getIconRenameItem32(){ return AbstractImagePrototype.create(ICONS.renameItem32()); } + /** + * Gets the icon file upload. + * + * @return the icon file upload + */ public static AbstractImagePrototype getIconFileUpload(){ return AbstractImagePrototype.create(ICONS.uploadFile()); } + /** + * Gets the icon file upload32. + * + * @return the icon file upload32 + */ public static AbstractImagePrototype getIconFileUpload32(){ return AbstractImagePrototype.create(ICONS.uploadFile32()); } + /** + * Gets the icon delete folder. + * + * @return the icon delete folder + */ public static AbstractImagePrototype getIconDeleteFolder(){ return AbstractImagePrototype.create(ICONS.deleteFolder()); } + /** + * Gets the icon delete item. + * + * @return the icon delete item + */ public static AbstractImagePrototype getIconDeleteItem(){ return AbstractImagePrototype.create(ICONS.deleteItem()); } + /** + * Gets the icon delete item32. + * + * @return the icon delete item32 + */ public static AbstractImagePrototype getIconDeleteItem32(){ return AbstractImagePrototype.create(ICONS.deleteItem32()); } + /** + * Gets the icon folder. + * + * @return the icon folder + */ public static AbstractImagePrototype getIconFolder(){ return AbstractImagePrototype.create(ICONS.folder()); } + /** + * Gets the icon audio. + * + * @return the icon audio + */ public static AbstractImagePrototype getIconAudio(){ return AbstractImagePrototype.create(ICONS.audio()); } + /** + * Gets the icon archive upload. + * + * @return the icon archive upload + */ public static AbstractImagePrototype getIconArchiveUpload(){ return AbstractImagePrototype.create(ICONS.archiveUpload()); } + /** + * Gets the icon biodiversity. + * + * @return the icon biodiversity + */ public static AbstractImagePrototype getIconBiodiversity(){ return AbstractImagePrototype.create(ICONS.biodiversity()); } + /** + * Gets the icon images. + * + * @return the icon images + */ public static AbstractImagePrototype getIconImages(){ return AbstractImagePrototype.create(ICONS.images()); } + /** + * Gets the icon documents. + * + * @return the icon documents + */ public static AbstractImagePrototype getIconDocuments(){ return AbstractImagePrototype.create(ICONS.documents()); } + /** + * Gets the icon pencil. + * + * @return the icon pencil + */ public static AbstractImagePrototype getIconPencil(){ return AbstractImagePrototype.create(ICONS.pencil()); } + /** + * Gets the icon edit. + * + * @return the icon edit + */ public static AbstractImagePrototype getIconEdit(){ return AbstractImagePrototype.create(ICONS.edit()); } + /** + * Gets the icon history. + * + * @return the icon history + */ public static AbstractImagePrototype getIconHistory(){ return AbstractImagePrototype.create(ICONS.history()); } + /** + * Gets the icon search. + * + * @return the icon search + */ public static AbstractImagePrototype getIconSearch() { return AbstractImagePrototype.create(ICONS.search()); } + /** + * Gets the icon links. + * + * @return the icon links + */ public static AbstractImagePrototype getIconLinks(){ return AbstractImagePrototype.create(ICONS.links()); } + /** + * Gets the icon report. + * + * @return the icon report + */ public static AbstractImagePrototype getIconReport(){ return AbstractImagePrototype.create(ICONS.report()); } + /** + * Gets the icon grid view. + * + * @return the icon grid view + */ public static AbstractImagePrototype getIconGridView(){ return AbstractImagePrototype.create(ICONS.gridView()); } + /** + * Gets the icon report template. + * + * @return the icon report template + */ private static AbstractImagePrototype getIconReportTemplate() { return AbstractImagePrototype.create(ICONS.reportTemplate()); } + /** + * Gets the icon time series. + * + * @return the icon time series + */ public static AbstractImagePrototype getIconTimeSeries(){ return AbstractImagePrototype.create(ICONS.timeSeries()); } + /** + * Gets the icon download. + * + * @return the icon download + */ public static AbstractImagePrototype getIconDownload(){ return AbstractImagePrototype.create(ICONS.download()); } + /** + * Gets the icon cancel. + * + * @return the icon cancel + */ public static AbstractImagePrototype getIconCancel(){ return AbstractImagePrototype.create(ICONS.cancel()); } + /** + * Gets the icon toggle list. + * + * @return the icon toggle list + */ public static AbstractImagePrototype getIconToggleList() { return AbstractImagePrototype.create(ICONS.toggleList()); } + /** + * Gets the icon toggle group. + * + * @return the icon toggle group + */ public static AbstractImagePrototype getIconToggleGroup() { return AbstractImagePrototype.create(ICONS.toggleGroup()); } + /** + * Gets the icon toggle icon. + * + * @return the icon toggle icon + */ public static AbstractImagePrototype getIconToggleIcon() { return AbstractImagePrototype.create(ICONS.toggleIcon()); } + /** + * Gets the icon save. + * + * @return the icon save + */ public static AbstractImagePrototype getIconSave() { return AbstractImagePrototype.create(ICONS.save()); } + /** + * Gets the icon star. + * + * @return the icon star + */ public static AbstractImagePrototype getIconStar() { return AbstractImagePrototype.create(ICONS.star()); } + /** + * Gets the icon preview. + * + * @return the icon preview + */ public static AbstractImagePrototype getIconPreview() { return AbstractImagePrototype.create(ICONS.preview()); } + /** + * Gets the icon show. + * + * @return the icon show + */ public static AbstractImagePrototype getIconShow() { return AbstractImagePrototype.create(ICONS.show()); } + /** + * Gets the icon open url. + * + * @return the icon open url + */ public static AbstractImagePrototype getIconOpenUrl() { return AbstractImagePrototype.create(ICONS.openUrl()); } + /** + * Gets the icon add url. + * + * @return the icon add url + */ public static AbstractImagePrototype getIconAddUrl() { return AbstractImagePrototype.create(ICONS.addUrl()); } + /** + * Gets the icon send to. + * + * @return the icon send to + */ public static AbstractImagePrototype getIconSendTo() { return AbstractImagePrototype.create(ICONS.sendTo()); } + /** + * Gets the icon check user. + * + * @return the icon check user + */ public static AbstractImagePrototype getIconCheckUser() { return AbstractImagePrototype.create(ICONS.checkUser()); } + /** + * Gets the icon messages received. + * + * @return the icon messages received + */ public static AbstractImagePrototype getIconMessagesReceived() { return AbstractImagePrototype.create(ICONS.inboxReceived()); } + /** + * Gets the icon messages sent. + * + * @return the icon messages sent + */ public static AbstractImagePrototype getIconMessagesSent() { return AbstractImagePrototype.create(ICONS.inboxSent()); } + /** + * Gets the icon email. + * + * @return the icon email + */ public static AbstractImagePrototype getIconEmail() { return AbstractImagePrototype.create(ICONS.email()); } + /** + * Gets the icon open email. + * + * @return the icon open email + */ public static AbstractImagePrototype getIconOpenEmail() { return AbstractImagePrototype.create(ICONS.openEmail()); } + /** + * Gets the icon save attachments. + * + * @return the icon save attachments + */ public static AbstractImagePrototype getIconSaveAttachments() { return AbstractImagePrototype.create(ICONS.saveAttachs()); } + /** + * Gets the icon download emails. + * + * @return the icon download emails + */ public static AbstractImagePrototype getIconDownloadEmails() { return AbstractImagePrototype.create(ICONS.downloadEmail()); } + /** + * Gets the icon email read. + * + * @return the icon email read + */ public static AbstractImagePrototype getIconEmailRead() { return AbstractImagePrototype.create(ICONS.emailRead()); } + /** + * Gets the icon email not read. + * + * @return the icon email not read + */ public static AbstractImagePrototype getIconEmailNotRead() { return AbstractImagePrototype.create(ICONS.emailNotRead()); } + /** + * Gets the icon delete message. + * + * @return the icon delete message + */ public static AbstractImagePrototype getIconDeleteMessage() { return AbstractImagePrototype.create(ICONS.emailDelete()); } + /** + * Gets the icon email forward. + * + * @return the icon email forward + */ public static AbstractImagePrototype getIconEmailForward() { return AbstractImagePrototype.create(ICONS.emailForward()); } + /** + * Gets the icon copy. + * + * @return the icon copy + */ public static AbstractImagePrototype getIconCopy() { return AbstractImagePrototype.create(ICONS.copy()); } + /** + * Gets the icon paste. + * + * @return the icon paste + */ public static AbstractImagePrototype getIconPaste() { return AbstractImagePrototype.create(ICONS.paste()); } + /** + * Gets the icon refresh. + * + * @return the icon refresh + */ public static AbstractImagePrototype getIconRefresh() { return AbstractImagePrototype.create(ICONS.refreshFolder()); } + /** + * Gets the icon bulk update. + * + * @return the icon bulk update + */ public static AbstractImagePrototype getIconBulkUpdate() { return AbstractImagePrototype.create(ICONS.loading2()); } + /** + * Gets the icon loading. + * + * @return the icon loading + */ public static AbstractImagePrototype getIconLoading() { return AbstractImagePrototype.create(ICONS.loading()); } + /** + * Gets the icon loading off. + * + * @return the icon loading off + */ public static AbstractImagePrototype getIconLoadingOff() { return AbstractImagePrototype.create(ICONS.loadingOff()); } + /** + * Gets the icon loading2. + * + * @return the icon loading2 + */ public static AbstractImagePrototype getIconLoading2() { return AbstractImagePrototype.create(ICONS.loading2()); } + /** + * Gets the icon delete2. + * + * @return the icon delete2 + */ public static AbstractImagePrototype getIconDelete2() { return AbstractImagePrototype.create(ICONS.delete2()); } + /** + * Gets the icon url web dav. + * + * @return the icon url web dav + */ public static AbstractImagePrototype getIconUrlWebDav() { return AbstractImagePrototype.create(ICONS.urlWebDav()); } + /** + * Gets the icon remove filter. + * + * @return the icon remove filter + */ public static AbstractImagePrototype getIconRemoveFilter() { return AbstractImagePrototype.create(ICONS.removeFilter()); } + /** + * Gets the icon new mail. + * + * @return the icon new mail + */ public static AbstractImagePrototype getIconNewMail() { return AbstractImagePrototype.create(ICONS.createNewMail()); } + + /** + * Gets the icon reply mail. + * + * @return the icon reply mail + */ public static AbstractImagePrototype getIconReplyMail() { return AbstractImagePrototype.create(ICONS.replyMail()); } + /** + * Gets the icon public link. + * + * @return the icon public link + */ public static AbstractImagePrototype getIconPublicLink() { return AbstractImagePrototype.create(ICONS.publicLink()); } + /** + * Gets the icon reply all mail. + * + * @return the icon reply all mail + */ public static AbstractImagePrototype getIconReplyAllMail() { return AbstractImagePrototype.create(ICONS.replyAllMail()); } + /** + * Gets the icon workflow report. + * + * @return the icon workflow report + */ public static AbstractImagePrototype getIconWorkflowReport() { return AbstractImagePrototype.create(ICONS.workflowReport()); } + /** + * Gets the icon workflow template. + * + * @return the icon workflow template + */ public static AbstractImagePrototype getIconWorkflowTemplate() { return AbstractImagePrototype.create(ICONS.workflowTemplate()); } + /** + * Gets the icon web dav. + * + * @return the icon web dav + */ public static AbstractImagePrototype getIconWebDav() { return AbstractImagePrototype.create(ICONS.webDav()); } + /** + * Gets the icon resource link. + * + * @return the icon resource link + */ public static AbstractImagePrototype getIconResourceLink() { return AbstractImagePrototype.create(ICONS.resourceLink()); } + /** + * Gets the icon share folder. + * + * @return the icon share folder + */ public static AbstractImagePrototype getIconShareFolder() { return AbstractImagePrototype.create(ICONS.shareFolder()); } + /** + * Gets the icon un share folder. + * + * @return the icon un share folder + */ public static AbstractImagePrototype getIconUnShareFolder() { return AbstractImagePrototype.create(ICONS.unShareFolder()); } + /** + * Gets the icon un share user. + * + * @return the icon un share user + */ public static AbstractImagePrototype getIconUnShareUser() { return AbstractImagePrototype.create(ICONS.unShareUser()); } + /** + * Gets the icon write own. + * + * @return the icon write own + */ public static AbstractImagePrototype getIconWriteOwn() { return AbstractImagePrototype.create(ICONS.writeown()); } + /** + * Gets the icon write all. + * + * @return the icon write all + */ public static AbstractImagePrototype getIconWriteAll() { return AbstractImagePrototype.create(ICONS.writeall()); } + /** + * Gets the icon read only. + * + * @return the icon read only + */ public static AbstractImagePrototype getIconReadOnly() { return AbstractImagePrototype.create(ICONS.readonly()); } + /** + * Gets the all left. + * + * @return the all left + */ public static AbstractImagePrototype getAllLeft() { return AbstractImagePrototype.create(ICONS.allLeft()); } + /** + * Gets the all right. + * + * @return the all right + */ public static AbstractImagePrototype getAllRight() { return AbstractImagePrototype.create(ICONS.allRight()); } + /** + * Gets the selected left. + * + * @return the selected left + */ public static AbstractImagePrototype getSelectedLeft() { return AbstractImagePrototype.create(ICONS.selectedLeft()); } + /** + * Gets the selected right. + * + * @return the selected right + */ public static AbstractImagePrototype getSelectedRight() { return AbstractImagePrototype.create(ICONS.selectedRight()); } + /** + * Gets the icon permissions. + * + * @return the icon permissions + */ public static AbstractImagePrototype getIconPermissions() { return AbstractImagePrototype.create(ICONS.permissions()); } /** - * @return + * Gets the icon add administrator. + * + * @return the icon add administrator */ public static AbstractImagePrototype getIconAddAdministrator() { return AbstractImagePrototype.create(ICONS.addAdmin()); } /** - * @return + * Gets the icon manage administrator. + * + * @return the icon manage administrator */ public static AbstractImagePrototype getIconManageAdministrator() { return AbstractImagePrototype.create(ICONS.manageAdmin()); } //ImageResources + /** + * Gets the image path separator. + * + * @return the image path separator + */ public static ImageResource getImagePathSeparator(){ return ICONS.separatorPath(); } + /** + * Gets the image loading. + * + * @return the image loading + */ public static ImageResource getImageLoading() { return ICONS.loading(); } + /** + * Gets the image hard disk. + * + * @return the image hard disk + */ public static ImageResource getImageHardDisk(){ return ICONS.hardDisk(); } + /** + * Gets the image search. + * + * @return the image search + */ public static ImageResource getImageSearch(){ return ICONS.search(); } + /** + * Gets the image folder. + * + * @return the image folder + */ public static ImageResource getImageFolder(){ return ICONS.folder(); } + /** + * Gets the image cancel. + * + * @return the image cancel + */ public static ImageResource getImageCancel() { return ICONS.cancel(); } + /** + * Gets the image delete. + * + * @return the image delete + */ public static ImageResource getImageDelete() { return ICONS.delete2(); } + /** + * Gets the image attachs. + * + * @return the image attachs + */ public static ImageResource getImageAttachs() { return ICONS.attach(); } - public static AbstractImagePrototype getIconByExtension(String fileExtension) { + /** + * Gets the icon by media type name. + * + * @param mediaTypeName the media type name + * @return the icon by media type name + */ + public static AbstractImagePrototype getIconByMediaTypeName(String mediaTypeName) { - if (MPEG.equals(fileExtension) || SWF.equals(fileExtension) || FLV.equals(fileExtension) || AVI.equals(fileExtension)) { + if (MPEG.equals(mediaTypeName) || SWF.equals(mediaTypeName) || FLV.equals(mediaTypeName) || AVI.equals(mediaTypeName)) { return Resources.getIconMovie(); - } else if (JPEG.equals(fileExtension) || JPG.equals(fileExtension)) { + } else if (JPEG.equals(mediaTypeName) || JPG.equals(mediaTypeName)) { return Resources.getIconJpeg(); - } else if (XHTLXML.equals(fileExtension)) { + } else if (XHTLXML.equals(mediaTypeName)) { return Resources.getIconXml(); - } else if (fileExtension.contains(MSWORD) || DOC.equals(fileExtension) || fileExtension.contains(DOCX)) { + } else if (mediaTypeName.contains(MSWORD) || DOC.equals(mediaTypeName) || mediaTypeName.contains(DOCX)) { return Resources.getIconDoc(); - } else if (XML.equals(fileExtension)) { + } else if (XML.equals(mediaTypeName)) { return Resources.getIconXml(); - } else if (CSV.equals(fileExtension)) { + } else if (CSV.equals(mediaTypeName)) { return Resources.getIconCsv(); - } else if (JAVA.equals(fileExtension)) { + } else if (JAVA.equals(mediaTypeName)) { return Resources.getIconJava(); - } else if (HTML.equals(fileExtension)) { + } else if (HTML.equals(mediaTypeName)) { return Resources.getIconHtml(); - } else if (PNG.equals(fileExtension)) { + } else if (PNG.equals(mediaTypeName)) { return Resources.getIconPng(); - } else if (PDF.equals(fileExtension)) { + } else if (PDF.equals(mediaTypeName)) { return Resources.getIconPdf(); - } else if (TIFF.equals(fileExtension)) { + } else if (TIFF.equals(mediaTypeName)) { return Resources.getIconTiff(); - } else if (SVG.equals(fileExtension)) { + } else if (SVG.equals(mediaTypeName)) { return Resources.getIconSvg(); - } else if (GIF.equals(fileExtension)) { + } else if (GIF.equals(mediaTypeName)) { return Resources.getIconGif(); - } else if (TXT.equals(fileExtension)) { + } else if (TXT.equals(mediaTypeName)) { return Resources.getIconTxt(); - }else if (fileExtension.contains(PPT) || fileExtension.equals(PPTX)) { + }else if (mediaTypeName.contains(PPT) || mediaTypeName.equals(PPTX)) { return Resources.getIconPpt(); - } else if(fileExtension.contains(ODP)){ + } else if(mediaTypeName.contains(ODP)){ return Resources.getIconOdp(); - }else if (fileExtension.contains(EXCEL) || fileExtension.contains(XSLX)) { + }else if (mediaTypeName.contains(EXCEL) || mediaTypeName.contains(XSLX)) { return Resources.getIconExcel(); + }else if (mediaTypeName.contains(ZIP)) { + return Resources.getIconZip(); + }else if (mediaTypeName.contains(DVI)) { + return Resources.getIconDvi(); + }else if (mediaTypeName.contains(X_SH) || mediaTypeName.contains(X_SHELLSCRIPT)) { + return Resources.getIconShell(); + }else if (mediaTypeName.contains(XTEX)) { + return Resources.getIconXTex(); + }else if (mediaTypeName.contains(POSTSCRIPT)) { + return Resources.getIconPostscript(); } return Resources.getIconTable(); } + /** + * Gets the icon by folder item type. + * + * @param itemType the item type + * @return the icon by folder item type + */ public static AbstractImagePrototype getIconByFolderItemType(GXTFolderItemTypeEnum itemType){ if(itemType!=null){ @@ -690,14 +1384,21 @@ public class Resources { return Resources.getIconTable(); } + /** + * Gets the icon by type. + * + * @param type the type + * @return the icon by type + */ public static AbstractImagePrototype getIconByType(String type){ if(type.equals(GXTFolderItemTypeEnum.FOLDER.toString())) return Resources.getIconFolder(); + //RECOVERING "mediat type name" from type / media type name [+suffix] int sl = type.indexOf("/"); - String extension = type.substring(sl+1, type.length()); - return Resources.getIconByExtension(extension); + String mediaTypeName = type.substring(sl+1, type.length()); + return Resources.getIconByMediaTypeName(mediaTypeName); } } diff --git a/src/main/java/org/gcube/portlets/user/workspace/client/resources/icons/dvi.gif b/src/main/java/org/gcube/portlets/user/workspace/client/resources/icons/dvi.gif new file mode 100644 index 0000000000000000000000000000000000000000..6c4e71e63f1ea23d6c50b81f6f4224a908e35d1e GIT binary patch literal 972 zcmZWodq`7Z6hFIOb0Zt}bu(T4F*T^jA|lGD;6|1P2}K146=_5dELKGHfKXdnX?1UA zT3IX~sb%yIE6cg*TE(E`mc5kKbeito+0*oHvvaqIpu^$vJHPWg-#Op8d?`zpB+bo; zf+!dO*v8cDIMKL^Yuv>*?kRe-zxd&S;)a7I4_0T}*W}pJb6eIKo7WqgGmcm@k6Je! zvurMC+FIC@b;3Lh!@1`g4qteD#AGfgw-lCJPF6MZ)wWYLw&JVylDem7uRXhP(@}Bn zW$i=Zy7|p*>$}!ZLxOAQb>~o9m;BZ(zweem^vE5bWoNJNqsQkGeO;2z?e+Ea`+L9m z`@Z_cZ+`E0fB(NK{ zse{>6BBuXCP7IO361*3UDYr2h0OvfqRvQO;O3oI}szJ)QX*4x1C6Zcy~_TtHKQfO+;m-A(9U_;M#E>UZd#I zf-O>c%_#&J5~-|R)V7QI%*%G58Zs{nis&E1A4DV%v(SuAB$L~hV6B>N)8U+NEEWg0 zvsheA8ekS6jA5CURwu*au>z4Qu{H6s*0rab^vW2hOfG(f%8lbq=!@yQI1<(#YFE~a z)|)5%bsUCxC$?wpCf-C8pu3$F02+7h4Qv`WNUH$GK%!Enya`a(!X)*C(NuH3RyTcB zl7Tf@HSv3T>^ZKyYnhJJFXx;;qDA?`EM`F+u||xIia!?pV=4(t)Igb;nrbRBN@hZk zRKY>y4kR#Blan6~4T*@jh;&j~s8vIv?i3W!YU_b;cdf>WaHaTOn{0dY=F9Uw@AH1o zdtY*!w{9}8&NG4$#sOyk@OyI6;EL*(=Gwrz^MS)>y9$`D0=DZ|^Ydz!L_nYUJ^6mo_-L|vtVgy z=Ps}JRMdMan|jzkd{xc9+LpT)uJtwi`S5Zl&-RX7bq`$kK5KqB*7En*jREo2gW-;+ zqH9pPAC&t-@}t+2d~otfXtMu}@>Ea;hn43e%8R#3U^Mzlj0UCX8#yY3qa*L%jYOtK z-%W)-OhrD%-jByVe2V=u5gVV3O(@eCpoWFWEsXq49BTnIpmh*A7f*JsU2iSZTldFX zpb;6+%poF$Vj{Zvj%{#x7A6sS{-)g4@<1&Ch$!+MZCLitUQ26>X|07wGyAt+MO;lG z2qGX7jY?MM*Y5%%1z6pWw7!|u9U`(>y+O)MbQiZXL^i~`TZokNKQb*r#z$~H3R{9> zBLMD?I2}v(f#1$3g&OtgC?csZlOS209p4l8VUtxoM%-cxn_Pt;E^`h^DMOOUddUx3 zm-P}KSN(Soc|Vawx+s82WKM`K@iu+uo5vA(z~kvdJC7$wp8)IvB++)E_fdehqdQOJ zMzkhji+A_AZj-tODmT_VMrHnd4l|3ofh*x`MZ}Qs8$Heco1i^M!f8Xcqa?fx1(-sh z0U%i@X+_i22}%Pn50OTR7PRKB9%d4l(%u3C)=d@b54PPx~7A)W4@EcQSRDI6_ z*Kns2RvZk~H8$R<+Pc1eH<9% zaF@>ljoE0XFE(7s{yK?yk)EDmFgi1>&eoH>PgiQXEjZYVhrXDZ@vS)u$FdxYG7h#I zE%_zhl-1dk!4fDf_O3LUL)^~IDGOHFcy9TIO-ZHm>7^DsSFHPzEHvl3O(t0L8Lx7< A=l}o! literal 0 HcmV?d00001 diff --git a/src/main/java/org/gcube/portlets/user/workspace/client/resources/icons/shell-script.png b/src/main/java/org/gcube/portlets/user/workspace/client/resources/icons/shell-script.png new file mode 100644 index 0000000000000000000000000000000000000000..606713905f4af8057d35926dc8485bfa021cc122 GIT binary patch literal 1062 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caK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