Updated ProgressBar set Progress 0

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-column-widget@98786 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-07-18 13:00:41 +00:00
parent be3867d376
commit 89e5303be3
9 changed files with 40 additions and 16 deletions

View File

@ -5338,3 +5338,35 @@ Compiling...
Compilation completed in 0.00 seconds Compilation completed in 0.00 seconds
Removing invalidated units Removing invalidated units
Finding entry point classes Finding entry point classes
Public resources found in...
Translatable source found in...
Found 0 cached/archived units. Used 0 / 2719 units from cache.
Compiling...
60% complete (ETR: 2 seconds)
60% complete (ETR: 2 seconds)
60% complete (ETR: 2 seconds)
60% complete (ETR: 2 seconds)
60% complete (ETR: 2 seconds)
60% complete (ETR: 2 seconds)
60% complete (ETR: 2 seconds)
70% complete (ETR: 2 seconds)
80% complete (ETR: 1 seconds)
90% complete (ETR: 1 seconds)
100% complete (ETR: 0 seconds)
Compilation completed in 12.77 seconds
Removing invalidated units
Finding entry point classes
Public resources found in...
Translatable source found in...
Found 2719 cached/archived units. Used 2719 / 2719 units from cache.
Compiling...
Compilation completed in 0.00 seconds
Removing invalidated units
Finding entry point classes
Public resources found in...
Translatable source found in...
Found 2719 cached/archived units. Used 2719 / 2719 units from cache.
Compiling...
Compilation completed in 0.00 seconds
Removing invalidated units
Finding entry point classes

View File

@ -58,8 +58,7 @@ public class AddColumnProgressBarUpdater implements AddColumnProgressListener {
@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+"% Progress..."); progressBar.updateProgress(elaborated,elab+"% Progress...");

View File

@ -57,8 +57,7 @@ public class ChangeColumnTypeProgressBarUpdater implements ChangeColumnTypeProgr
@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+"% Progress..."); progressBar.updateProgress(elaborated,elab+"% Progress...");

View File

@ -54,8 +54,7 @@ public class DeleteColumnProgressBarUpdater implements DeleteColumnProgressListe
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+"% Progress..."); progressBar.updateProgress(elaborated,elab+"% Progress...");

View File

@ -54,8 +54,7 @@ public class LabelColumnProgressBarUpdater implements LabelColumnProgressListene
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+"% Progress..."); progressBar.updateProgress(elaborated,elab+"% Progress...");

View File

@ -54,8 +54,7 @@ public class ReplaceBatchColumnProgressBarUpdater implements ReplaceBatchColumnP
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+"% Progress..."); progressBar.updateProgress(elaborated,elab+"% Progress...");

View File

@ -54,8 +54,7 @@ public class ReplaceColumnProgressBarUpdater implements ReplaceColumnProgressLis
public void operationUpdate(float elaborated) { public void operationUpdate(float elaborated) {
Log.info("Import elaborated: "+elaborated); Log.info("Import 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+"% Progress..."); progressBar.updateProgress(elaborated,elab+"% Progress...");

View File

@ -58,8 +58,7 @@ public class TaskResubmitProgressBarUpdater implements TaskResubmitProgressListe
@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+"% Progress..."); progressBar.updateProgress(elaborated,elab+"% Progress...");

View File

@ -58,8 +58,7 @@ public class TaskResumeProgressBarUpdater implements TaskResumeProgressListener
@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+"% Progress..."); progressBar.updateProgress(elaborated,elab+"% Progress...");