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 0000000..bd354b0 Binary files /dev/null and b/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/resources/old/gcubeItem.jpeg differ 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 0000000..d23ff27 Binary files /dev/null and b/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/resources/old/icon-unknown.gif differ