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.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<String>() {
|
||||
|
@ -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<ListLoadResult<ResourceTDDescriptor>> callback) {
|
||||
|
|
Loading…
Reference in New Issue