From f82cdd48bc288ac0ea7e84202a27ed8bb3183095 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Fri, 18 Jul 2014 13:06:22 +0000 Subject: [PATCH] Updated ProgressBar set Progress 0 git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-extractcodelist-widget@98791 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../client/progress/ExtractCodelistProgressBarUpdater.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/td/extractcodelistwidget/client/progress/ExtractCodelistProgressBarUpdater.java b/src/main/java/org/gcube/portlets/user/td/extractcodelistwidget/client/progress/ExtractCodelistProgressBarUpdater.java index 1454c43..4a398e1 100644 --- a/src/main/java/org/gcube/portlets/user/td/extractcodelistwidget/client/progress/ExtractCodelistProgressBarUpdater.java +++ b/src/main/java/org/gcube/portlets/user/td/extractcodelistwidget/client/progress/ExtractCodelistProgressBarUpdater.java @@ -58,8 +58,7 @@ public class ExtractCodelistProgressBarUpdater implements ExtractCodelistProgres @Override public void operationUpdate(float 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); int elab=new Float(elaborated*100).intValue(); progressBar.updateProgress(elaborated,elab+"% Progress...");