git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-csv-import-widget@98789 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
f4ea2ba6c4
commit
79c6fdf385
|
@ -60,8 +60,7 @@ public class CSVImportProgressBarUpdater implements CSVImportProgressListener {
|
||||||
@Override
|
@Override
|
||||||
public void operationUpdate(float elaborated) {
|
public void operationUpdate(float elaborated) {
|
||||||
Log.info("Elaborated: "+elaborated);
|
Log.info("Elaborated: "+elaborated);
|
||||||
if (elaborated == 0) progressBar.updateProgress(0, "Initializing...");
|
if (elaborated>=0 && elaborated<1) {
|
||||||
if (elaborated>0 && elaborated<1) {
|
|
||||||
Log.trace("progress "+elaborated);
|
Log.trace("progress "+elaborated);
|
||||||
int elab=new Float(elaborated*100).intValue();
|
int elab=new Float(elaborated*100).intValue();
|
||||||
progressBar.updateProgress(elaborated,elab+"% Importing...");
|
progressBar.updateProgress(elaborated,elab+"% Importing...");
|
||||||
|
|
|
@ -51,8 +51,7 @@ public class FileUploadProgressBarUpdater implements FileUploadProgressListener
|
||||||
|
|
||||||
public void operationUpdate(float elaborated) {
|
public void operationUpdate(float elaborated) {
|
||||||
Log.info("File upload elaborated: "+elaborated);
|
Log.info("File upload elaborated: "+elaborated);
|
||||||
if (elaborated == 0) progressBar.updateProgress(0, "Initializing...");
|
if (elaborated>=0 && elaborated<1) {
|
||||||
if (elaborated>0 && elaborated<1) {
|
|
||||||
Log.trace("progress "+elaborated);
|
Log.trace("progress "+elaborated);
|
||||||
int elab=new Float(elaborated*100).intValue();
|
int elab=new Float(elaborated*100).intValue();
|
||||||
progressBar.updateProgress(elaborated,elab+"% Uploading...");
|
progressBar.updateProgress(elaborated,elab+"% Uploading...");
|
||||||
|
|
Loading…
Reference in New Issue