From f106ff59dcc26ac6f716c24dbb642f4ad9edf3d5 Mon Sep 17 00:00:00 2001 From: Francesco Mangiacrapa Date: Wed, 8 Jul 2015 10:44:50 +0000 Subject: [PATCH] 256: Workspace explorer Task-Url: https://support.d4science.org/issues/256 Updated icons git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-explorer@117082 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../widgets/wsexplorer/client/Util.java | 8 +- .../resources/old/WorkspaceLightTreeCss.java | 9 +- .../old/WorkspaceLightTreeResources.java | 151 +++++++++++++++++- .../client/resources/old/gcubeItem.jpeg | Bin 0 -> 905 bytes .../client/resources/old/icon-unknown.gif | Bin 0 -> 376 bytes 5 files changed, 160 insertions(+), 8 deletions(-) create mode 100644 src/main/java/org/gcube/portlets/widgets/wsexplorer/client/resources/old/gcubeItem.jpeg create mode 100644 src/main/java/org/gcube/portlets/widgets/wsexplorer/client/resources/old/icon-unknown.gif diff --git a/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/Util.java b/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/Util.java index 6b55d9a..76543fc 100644 --- a/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/Util.java +++ b/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/Util.java @@ -85,12 +85,8 @@ public class Util { case PDF_DOCUMENT: return WorkspaceLightTreeResources.INSTANCE.pdf_document(); case IMAGE_DOCUMENT: return WorkspaceLightTreeResources.INSTANCE.image_document(); case URL_DOCUMENT: return WorkspaceLightTreeResources.INSTANCE.url_document(); -// case TIME_SERIES: return WorkspaceLightTreeResources.INSTANCE.timeseries(); -// case AQUAMAPS_ITEM: return WorkspaceLightTreeResources.INSTANCE.aquamaps(); -// case WORKFLOW_REPORT: return WorkspaceLightTreeResources.INSTANCE.workflow_report(); -// case WORKFLOW_TEMPLATE: return WorkspaceLightTreeResources.INSTANCE.workflow_template(); - - case UNKNOWN_TYPE: return WorkspaceLightTreeResources.INSTANCE.unknownType(); + case GCUBE_ITEM: return WorkspaceLightTreeResources.INSTANCE.gucbeItem(); + case UNKNOWN_TYPE: return WorkspaceLightTreeResources.INSTANCE.unknown(); default: { System.err.println("Unknown item type "+item.getType()); return WorkspaceLightTreeResources.INSTANCE.unknownType(); diff --git a/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/resources/old/WorkspaceLightTreeCss.java b/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/resources/old/WorkspaceLightTreeCss.java index 4c32d11..fac3234 100644 --- a/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/resources/old/WorkspaceLightTreeCss.java +++ b/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/resources/old/WorkspaceLightTreeCss.java @@ -6,11 +6,18 @@ package org.gcube.portlets.widgets.wsexplorer.client.resources.old; import com.google.gwt.resources.client.CssResource; /** - * @author Federico De Faveri defaveri@isti.cnr.it + * The Interface WorkspaceLightTreeCss. * + * @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it + * Jul 8, 2015 */ public interface WorkspaceLightTreeCss extends CssResource { + /** + * Name error. + * + * @return the string + */ public String nameError(); } diff --git a/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/resources/old/WorkspaceLightTreeResources.java b/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/resources/old/WorkspaceLightTreeResources.java index 93d6a26..4d8898f 100644 --- a/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/resources/old/WorkspaceLightTreeResources.java +++ b/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/resources/old/WorkspaceLightTreeResources.java @@ -9,88 +9,237 @@ import com.google.gwt.resources.client.DataResource; import com.google.gwt.resources.client.ImageResource; /** - * @author Federico De Faveri defaveri@isti.cnr.it + * The Interface WorkspaceLightTreeResources. * + * @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it + * Jul 8, 2015 */ public interface WorkspaceLightTreeResources extends ClientBundle { public static final WorkspaceLightTreeResources INSTANCE = GWT.create(WorkspaceLightTreeResources.class); + /** + * Root. + * + * @return the image resource + */ @Source("root.png") ImageResource root(); + /** + * Folder. + * + * @return the image resource + */ @Source("folder.png") ImageResource folder(); + /** + * Shared folder. + * + * @return the image resource + */ @Source("shared_folder.png") ImageResource sharedFolder(); + /** + * External_image. + * + * @return the image resource + */ @Source("external_image.gif") ImageResource external_image(); + /** + * External_pdf. + * + * @return the image resource + */ @Source("external_pdf.gif") ImageResource external_pdf(); + /** + * External_file. + * + * @return the image resource + */ @Source("external_file.png") ImageResource external_file(); + /** + * External_resource_link. + * + * @return the image resource + */ @Source("external_resource_link.png") ImageResource external_resource_link(); + /** + * External_url. + * + * @return the image resource + */ @Source("external_url.png") ImageResource external_url(); + /** + * Report_template. + * + * @return the image resource + */ @Source("report_template.png") ImageResource report_template(); + /** + * Report. + * + * @return the image resource + */ @Source("report.png") ImageResource report(); + /** + * Query. + * + * @return the image resource + */ @Source("query.png") ImageResource query(); + /** + * Document. + * + * @return the image resource + */ @Source("document.png") ImageResource document(); + /** + * Metadata. + * + * @return the image resource + */ @Source("metadata.png") ImageResource metadata(); + /** + * Pdf_document. + * + * @return the image resource + */ @Source("pdf_document.png") ImageResource pdf_document(); + /** + * Image_document. + * + * @return the image resource + */ @Source("image_document.png") ImageResource image_document(); + /** + * Url_document. + * + * @return the image resource + */ @Source("url_document.png") ImageResource url_document(); + /** + * Timeseries. + * + * @return the image resource + */ @Source("timeseries.png") ImageResource timeseries(); + /** + * Aquamaps. + * + * @return the image resource + */ @Source("aquamaps.png") ImageResource aquamaps(); + /** + * Workflow_report. + * + * @return the image resource + */ @Source("workflow_report.png") ImageResource workflow_report(); + /** + * Workflow_template. + * + * @return the image resource + */ @Source("workflow_template.png") ImageResource workflow_template(); + /** + * Unknown type. + * + * @return the image resource + */ @Source("noimage.png") ImageResource unknownType(); + /** + * Loading. + * + * @return the image resource + */ @Source("ajax-loader.gif") ImageResource loading(); + /** + * Gucbe item. + * + * @return the image resource + */ + @Source("gucbeItem.png") + ImageResource gucbeItem(); + + + /** + * Unknown. + * + * @return the image resource + */ + @Source("icon-unknown.gif") + ImageResource unknown(); + + /** + * Invalid name. + * + * @return the data resource + */ @Source("invalid_name.gif") DataResource invalidName(); + /** + * Css. + * + * @return the workspace light tree css + */ @Source("WorkspacePortletLightTree.css") WorkspaceLightTreeCss css(); + /** + * Error. + * + * @return the image resource + */ @Source("error.png") ImageResource error(); + /** + * Refresh. + * + * @return the image resource + */ @Source("refresh.png") ImageResource refresh(); } diff --git a/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/resources/old/gcubeItem.jpeg b/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/resources/old/gcubeItem.jpeg new file mode 100644 index 0000000000000000000000000000000000000000..bd354b0f27606ba6729b26101298ca169057d50c GIT binary patch literal 905 zcmex=%kxU@K!VDr=Sy-4^*jU-vz?hwr zgN>b&osEryn}d@J1b{3aZY~}W2V@9DD-$a-Gb`H|qMvW5}awt1(JSZA;@q>zSQc)8pmzcPOq?D?fx`w8fiK&^ng{76V zi>sTvho@I?NN8AiL}XNQN@`kqMrKxVNoiSmMP*fUOKV$uM`zch$y26In?7UatVN5L zEM2yI#mZHiHgDOwZTpU$yAB;ba`f2o6DLnyx_ss8wd*%--g@}x@sp>|p1*kc>f@)+ zU%r0({^RE_kiQrim?7Q*k`Rxf`AZP!FD6hNu!H=?$W#u*%z`YeiiT`Lj)Clng~Cck zjT|CQ6Blkg$f;}`^g%SK=pvVxipfLOk07sseMX$en#l4Q++zrT-D2QjW&}navmk># z!{3s>>*_Q4`Mn?T#=HFB{~d9B!H>me<{$mv6?NC-rS$g+SMcfg6;~KNK58d9>DlAB5Bm@O*n0D;_QJJyGB0j@ zy4f;T&t6O7N%6&$%8-dqAB6pF`Ny;WxWCko=?BWIrXSH~Kg`-Q-S9{MK|A$*7uVa^ zbG_QW+4)(bsQ+fox*t`mXL;T=m)NZ? tzOV1smP<9)Ugq9EdHi><@iwK&PrJi1y}aIf=C0Z{{c7~N-}?V=0su8URLlSX literal 0 HcmV?d00001 diff --git a/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/resources/old/icon-unknown.gif b/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/resources/old/icon-unknown.gif new file mode 100644 index 0000000000000000000000000000000000000000..d23ff27bfd7a0880f95196d808d6cb6542589600 GIT binary patch literal 376 zcmZ?wbhEHb6krfwxXJ(m|NsC0_wVoDzkmMx`ThI%uV24@{`~pl$B*xS|NQ>*``7PZ zKY#uF@$<*`AK$-y|MvCU*DqhceE$6DRWHJ$m%Ofdl*Z@87$3@18w-cJ11=W5c(jRZvinl9B>;GJ?HoN~*@wK%t>YhLxq2$-vW4k-tlpyO)#M(9=kC3Ll5u^j;PtPh&A9fvNI~XGj}+ znuxDjBfKt;)x^_OW$S7Yg`I4so@Nq4TLlFU$yb>fZeaR+b)) G4AuaCpUhYQ literal 0 HcmV?d00001