updated to be backward compatible

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-uploader@134741 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2016-11-25 00:34:18 +00:00
parent 1c448b043d
commit bc5c50db33
2 changed files with 4 additions and 4 deletions

View File

@ -88,7 +88,7 @@ public class WorkspaceUploader implements EntryPoint {
// MultipleDilaogUpload uploadStream = new MultipleDilaogUpload(headerTitle, parentId, org.gcube.portlets.widgets.workspaceuploader.client.uploader.DialogUpload.UPLOAD_TYPE.File); // MultipleDilaogUpload uploadStream = new MultipleDilaogUpload(headerTitle, parentId, org.gcube.portlets.widgets.workspaceuploader.client.uploader.DialogUpload.UPLOAD_TYPE.File);
// uploadStream.initFileReader(); // uploadStream.initFileReader();
// uploadStream.center(); // uploadStream.center();
dnd.setParameters(parentId, UPLOAD_TYPE.File, GCubeClientContext.getCurrentContextId()); dnd.setParameters(parentId, UPLOAD_TYPE.File);
} }
}); });

View File

@ -88,7 +88,7 @@ public class MultipleDNDUpload extends LayoutPanel implements HasWorskpaceUpload
HTML html = new HTML(dnd); HTML html = new HTML(dnd);
this.add(html); this.add(html);
scopeGroupId = GCubeClientContext.getCurrentContextId(); scopeGroupId = GCubeClientContext.getCurrentContextId();
setParameters(parentId, uploadType, scopeGroupId); setParameters(parentId, uploadType);
} }
@ -132,10 +132,10 @@ public class MultipleDNDUpload extends LayoutPanel implements HasWorskpaceUpload
* @param uploadType * @param uploadType
* the upload type * the upload type
*/ */
public void setParameters(String parentId, UPLOAD_TYPE uploadType, String scopeGroupId) { public void setParameters(String parentId, UPLOAD_TYPE uploadType) {
this.idFolder = parentId; this.idFolder = parentId;
this.type = uploadType; this.type = uploadType;
this.scopeGroupId = scopeGroupId; this.scopeGroupId = GCubeClientContext.getCurrentContextId();
} }
/** /**