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:
parent
5efba71d35
commit
72bfc56d65
|
@ -558,7 +558,6 @@ public class ResourcesPanel extends FramedPanel {
|
||||||
saveResourceSession.setFileName(resourceTDDescriptor.getName());
|
saveResourceSession.setFileName(resourceTDDescriptor.getName());
|
||||||
saveResourceSession.setFileDescription(resourceTDDescriptor
|
saveResourceSession.setFileDescription(resourceTDDescriptor
|
||||||
.getDescription());
|
.getDescription());
|
||||||
|
|
||||||
|
|
||||||
GWT.runAsync(new RunAsyncCallback() {
|
GWT.runAsync(new RunAsyncCallback() {
|
||||||
|
|
||||||
|
@ -707,10 +706,10 @@ public class ResourcesPanel extends FramedPanel {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (resource instanceof InternalURITD) {
|
if (resource instanceof InternalURITD) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (resource instanceof TableResourceTD) {
|
if (resource instanceof TableResourceTD) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
Log.error("Error with resource: no valid resource");
|
Log.error("Error with resource: no valid resource");
|
||||||
UtilsGXT3.alert("Error with resource",
|
UtilsGXT3.alert("Error with resource",
|
||||||
|
@ -721,15 +720,15 @@ 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>() {
|
||||||
|
@ -755,10 +754,10 @@ public class ResourcesPanel extends FramedPanel {
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
if (resource instanceof InternalURITD) {
|
if (resource instanceof InternalURITD) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (resource instanceof TableResourceTD) {
|
if (resource instanceof TableResourceTD) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
Log.error("Error with resource: no valid resource");
|
Log.error("Error with resource: no valid resource");
|
||||||
UtilsGXT3.alert("Error with resource",
|
UtilsGXT3.alert("Error with resource",
|
||||||
|
@ -769,10 +768,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) {
|
||||||
|
|
Loading…
Reference in New Issue