diff --git a/src/main/java/org/gcube/portlets/user/td/resourceswidget/client/ResourcesPanel.java b/src/main/java/org/gcube/portlets/user/td/resourceswidget/client/ResourcesPanel.java index 8c1517f..ce9a811 100644 --- a/src/main/java/org/gcube/portlets/user/td/resourceswidget/client/ResourcesPanel.java +++ b/src/main/java/org/gcube/portlets/user/td/resourceswidget/client/ResourcesPanel.java @@ -558,7 +558,6 @@ public class ResourcesPanel extends FramedPanel { saveResourceSession.setFileName(resourceTDDescriptor.getName()); saveResourceSession.setFileDescription(resourceTDDescriptor .getDescription()); - GWT.runAsync(new RunAsyncCallback() { @@ -707,10 +706,10 @@ public class ResourcesPanel extends FramedPanel { } else { if (resource instanceof InternalURITD) { - + } else { if (resource instanceof TableResourceTD) { - + } else { Log.error("Error with resource: no valid resource"); UtilsGXT3.alert("Error with resource", @@ -721,15 +720,15 @@ public class ResourcesPanel extends FramedPanel { } } } - - + protected void requestOpenGenericFile( final ResourceTDDescriptor resourceTDDescriptor) { ResourceTD resource = resourceTDDescriptor.getResourceTD(); if (resource instanceof StringResourceTD) { StringResourceTD genericFileResourceTD = (StringResourceTD) resource; UriResolverSession uriResolverSession = new UriResolverSession( - genericFileResourceTD.getStringValue(), ApplicationType.SMP); + genericFileResourceTD.getStringValue(), + ApplicationType.SMP, resourceTDDescriptor.getName()); TDGWTServiceAsync.INSTANCE.getUriFromResolver(uriResolverSession, new AsyncCallback() { @@ -755,10 +754,10 @@ public class ResourcesPanel extends FramedPanel { }); } else { if (resource instanceof InternalURITD) { - + } else { if (resource instanceof TableResourceTD) { - + } else { Log.error("Error with resource: no valid resource"); UtilsGXT3.alert("Error with resource", @@ -769,10 +768,6 @@ public class ResourcesPanel extends FramedPanel { } } } - - - - protected void loadData(ListLoadConfig loadConfig, final AsyncCallback> callback) {