Updated Map Resource
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-resources-widget@100889 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
a1c4654f61
commit
da62f14825
|
@ -434,10 +434,10 @@ public class ResourcesPanel extends FramedPanel {
|
|||
protected void requestOpenMap(
|
||||
final ResourceTDDescriptor resourceTDDescriptor) {
|
||||
ResourceTD resource = resourceTDDescriptor.getResourceTD();
|
||||
if (resource instanceof InternalURITD) {
|
||||
InternalURITD internalURITD = (InternalURITD) resource;
|
||||
if (resource instanceof StringResourceTD) {
|
||||
StringResourceTD stringResourceTD = (StringResourceTD) resource;
|
||||
UriResolverSession uriResolverSession = new UriResolverSession(
|
||||
internalURITD.getUri(), ApplicationType.GIS);
|
||||
stringResourceTD.getValue(), ApplicationType.GIS);
|
||||
|
||||
TDGWTServiceAsync.INSTANCE.getUriFromResolver(uriResolverSession,
|
||||
new AsyncCallback<String>() {
|
||||
|
@ -463,15 +463,15 @@ public class ResourcesPanel extends FramedPanel {
|
|||
});
|
||||
|
||||
} else {
|
||||
if (resource instanceof StringResourceTD) {
|
||||
Log.error("Error with resource: is string resource no uri present");
|
||||
if (resource instanceof InternalURITD) {
|
||||
/*Log.error("Error with resource: is internal uri resource no uri present");
|
||||
UtilsGXT3.alert("Error with resource",
|
||||
"Error is string resource no uri present");
|
||||
"Error is string resource no uri present");*/
|
||||
} else {
|
||||
if (resource instanceof TableResourceTD) {
|
||||
Log.error("Error with resource: is table resource no uri present");
|
||||
/*Log.error("Error with resource: is table resource no uri present");
|
||||
UtilsGXT3.alert("Error with resource",
|
||||
"Error is table resource no uri present");
|
||||
"Error is table resource no uri present");*/
|
||||
} else {
|
||||
Log.error("Error with resource: no valid resource");
|
||||
UtilsGXT3.alert("Error with resource",
|
||||
|
|
Loading…
Reference in New Issue