Fixed Progress Bar
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-column-widget@92487 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
de3cd1b883
commit
3d1084989e
|
@ -65,8 +65,8 @@ public class ChangeColumnTypeProgressBarUpdater implements ChangeColumnTypeProgr
|
|||
}
|
||||
|
||||
@Override
|
||||
public void operationStopped(String reason, String details) {
|
||||
Log.info("Stopped");
|
||||
public void operationStopped(TRId trId,String reason, String details) {
|
||||
Log.debug("Operation Stopped: ["+trId.toString()+", "+reason+", "+details+"]");
|
||||
progressBar.updateText("Stopped");
|
||||
|
||||
}
|
||||
|
|
|
@ -125,15 +125,9 @@ public class ChangeColumnTypeProgressDialog extends Window implements ChangeColu
|
|||
|
||||
|
||||
@Override
|
||||
public void operationStopped(String reason, String details) {
|
||||
public void operationStopped(TRId trId,String reason, String details) {
|
||||
Log.debug("Operation Stopped: ["+trId.toString()+", "+reason+", "+details+"]");
|
||||
ok.setVisible(true);
|
||||
this.trId=null;
|
||||
AlertMessageBox d = new AlertMessageBox("Stopped Changing Column Type", reason);
|
||||
d.addHideHandler(new HideHandler() {
|
||||
public void onHide(HideEvent event) {
|
||||
}
|
||||
});
|
||||
d.show();
|
||||
|
||||
this.trId=trId;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,5 +45,5 @@ public interface ChangeColumnTypeProgressListener {
|
|||
* @param caught the failure exception.
|
||||
* @param reason the failure reason.
|
||||
*/
|
||||
public void operationStopped(String reason, String details);
|
||||
public void operationStopped(TRId trId, String reason, String details);
|
||||
}
|
||||
|
|
|
@ -115,7 +115,7 @@ public class ChangeColumnTypeProgressUpdater extends Timer {
|
|||
details = "Change the column type stopped";
|
||||
}
|
||||
|
||||
fireOperationStopped(failure, details);
|
||||
fireOperationStopped(result.getTrId(),failure, details);
|
||||
}
|
||||
|
||||
protected String getStack(Throwable e) {
|
||||
|
@ -147,9 +147,9 @@ public class ChangeColumnTypeProgressUpdater extends Timer {
|
|||
listener.operationFailed(caught, failure, failureDetails);
|
||||
}
|
||||
|
||||
protected void fireOperationStopped(String reason, String details) {
|
||||
protected void fireOperationStopped(TRId trId, String reason, String details) {
|
||||
for (ChangeColumnTypeProgressListener listener : listeners)
|
||||
listener.operationStopped(reason, details);
|
||||
listener.operationStopped(trId,reason, details);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -65,8 +65,8 @@ public class DeleteColumnProgressBarUpdater implements DeleteColumnProgressListe
|
|||
}
|
||||
|
||||
@Override
|
||||
public void operationStopped(String reason, String details) {
|
||||
Log.info("Stopped");
|
||||
public void operationStopped(TRId trId,String reason, String details) {
|
||||
Log.debug("Operation Stopped: ["+trId.toString()+", "+reason+", "+details+"]");
|
||||
progressBar.updateText("Stopped");
|
||||
|
||||
}
|
||||
|
|
|
@ -124,16 +124,10 @@ public class DeleteColumnProgressDialog extends Window implements DeleteColumnPr
|
|||
}
|
||||
|
||||
@Override
|
||||
public void operationStopped(String reason, String details) {
|
||||
public void operationStopped(TRId trId,String reason, String details) {
|
||||
Log.debug("Operation Stopped: ["+trId.toString()+", "+reason+", "+details+"]");
|
||||
ok.setVisible(true);
|
||||
this.trId=null;
|
||||
AlertMessageBox d = new AlertMessageBox("Stopped Delete Column", reason);
|
||||
d.addHideHandler(new HideHandler() {
|
||||
public void onHide(HideEvent event) {
|
||||
}
|
||||
});
|
||||
d.show();
|
||||
|
||||
this.trId=trId;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -46,6 +46,6 @@ public interface DeleteColumnProgressListener {
|
|||
* @param caught the failure exception.
|
||||
* @param reason the failure reason.
|
||||
*/
|
||||
public void operationStopped(String reason, String details);
|
||||
public void operationStopped(TRId trId, String reason, String details);
|
||||
|
||||
}
|
||||
|
|
|
@ -119,7 +119,7 @@ public class DeleteColumnProgressUpdater extends Timer {
|
|||
details = "Delete the column stopped";
|
||||
}
|
||||
|
||||
fireOperationStopped(failure, details);
|
||||
fireOperationStopped(result.getTrId(),failure, details);
|
||||
}
|
||||
|
||||
|
||||
|
@ -152,9 +152,9 @@ public class DeleteColumnProgressUpdater extends Timer {
|
|||
listener.operationFailed(caught, failure, failureDetails);
|
||||
}
|
||||
|
||||
protected void fireOperationStopped(String reason, String details) {
|
||||
protected void fireOperationStopped(TRId trId, String reason, String details) {
|
||||
for (DeleteColumnProgressListener listener : listeners)
|
||||
listener.operationStopped(reason, details);
|
||||
listener.operationStopped(trId,reason, details);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -65,8 +65,8 @@ public class LabelColumnProgressBarUpdater implements LabelColumnProgressListene
|
|||
}
|
||||
|
||||
@Override
|
||||
public void operationStopped(String reason, String details) {
|
||||
Log.info("Stopped");
|
||||
public void operationStopped(TRId trId,String reason, String details) {
|
||||
Log.debug("Operation Stopped: ["+trId.toString()+", "+reason+", "+details+"]");
|
||||
progressBar.updateText("Stopped");
|
||||
|
||||
}
|
||||
|
|
|
@ -125,15 +125,9 @@ public class LabelColumnProgressDialog extends Window implements LabelColumnProg
|
|||
}
|
||||
|
||||
@Override
|
||||
public void operationStopped(String reason, String details) {
|
||||
public void operationStopped(TRId trId,String reason, String details) {
|
||||
Log.debug("Operation Stopped: ["+trId.toString()+", "+reason+", "+details+"]");
|
||||
ok.setVisible(true);
|
||||
this.trId=null;
|
||||
AlertMessageBox d = new AlertMessageBox(reason, details);
|
||||
d.addHideHandler(new HideHandler() {
|
||||
public void onHide(HideEvent event) {
|
||||
}
|
||||
});
|
||||
d.show();
|
||||
|
||||
this.trId=trId;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -47,5 +47,5 @@ public interface LabelColumnProgressListener {
|
|||
* @param caught the failure exception.
|
||||
* @param reason the failure reason.
|
||||
*/
|
||||
public void operationStopped(String reason, String details);
|
||||
public void operationStopped(TRId trId, String reason, String details);
|
||||
}
|
||||
|
|
|
@ -119,7 +119,7 @@ public class LabelColumnProgressUpdater extends Timer {
|
|||
details = "Stopped changing the column label ";
|
||||
}
|
||||
|
||||
fireOperationStopped(failure, details);
|
||||
fireOperationStopped(result.getTrId(),failure, details);
|
||||
}
|
||||
|
||||
|
||||
|
@ -152,9 +152,9 @@ public class LabelColumnProgressUpdater extends Timer {
|
|||
listener.operationFailed(caught, failure, failureDetails);
|
||||
}
|
||||
|
||||
protected void fireOperationStopped(String reason, String details) {
|
||||
protected void fireOperationStopped(TRId trId, String reason, String details) {
|
||||
for (LabelColumnProgressListener listener : listeners)
|
||||
listener.operationStopped(reason, details);
|
||||
listener.operationStopped(trId,reason, details);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue