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
This commit is contained in:
parent
8df35f5bbf
commit
f82cdd48bc
|
@ -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...");
|
||||
|
|
Loading…
Reference in New Issue