Fixed external file open in resources

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-resources-widget@112307 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2015-03-03 11:07:39 +00:00
parent 5efba71d35
commit 72bfc56d65
1 changed files with 7 additions and 12 deletions

View File

@ -559,7 +559,6 @@ public class ResourcesPanel extends FramedPanel {
saveResourceSession.setFileDescription(resourceTDDescriptor saveResourceSession.setFileDescription(resourceTDDescriptor
.getDescription()); .getDescription());
GWT.runAsync(new RunAsyncCallback() { GWT.runAsync(new RunAsyncCallback() {
public void onSuccess() { public void onSuccess() {
@ -722,14 +721,14 @@ public class ResourcesPanel extends FramedPanel {
} }
} }
protected void requestOpenGenericFile( protected void requestOpenGenericFile(
final ResourceTDDescriptor resourceTDDescriptor) { final ResourceTDDescriptor resourceTDDescriptor) {
ResourceTD resource = resourceTDDescriptor.getResourceTD(); ResourceTD resource = resourceTDDescriptor.getResourceTD();
if (resource instanceof StringResourceTD) { if (resource instanceof StringResourceTD) {
StringResourceTD genericFileResourceTD = (StringResourceTD) resource; StringResourceTD genericFileResourceTD = (StringResourceTD) resource;
UriResolverSession uriResolverSession = new UriResolverSession( UriResolverSession uriResolverSession = new UriResolverSession(
genericFileResourceTD.getStringValue(), ApplicationType.SMP); genericFileResourceTD.getStringValue(),
ApplicationType.SMP, resourceTDDescriptor.getName());
TDGWTServiceAsync.INSTANCE.getUriFromResolver(uriResolverSession, TDGWTServiceAsync.INSTANCE.getUriFromResolver(uriResolverSession,
new AsyncCallback<String>() { new AsyncCallback<String>() {
@ -770,10 +769,6 @@ public class ResourcesPanel extends FramedPanel {
} }
} }
protected void loadData(ListLoadConfig loadConfig, protected void loadData(ListLoadConfig loadConfig,
final AsyncCallback<ListLoadResult<ResourceTDDescriptor>> callback) { final AsyncCallback<ListLoadResult<ResourceTDDescriptor>> callback) {