Skip to content

Commit

Permalink
minor improvement in showing results progress in UI
Browse files Browse the repository at this point in the history
Set the progress monitor subtask at the start to show progress to the user.
  • Loading branch information
ashitsalesforce committed Jan 20, 2024
1 parent 5a2401b commit 9e1139a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ protected void startWriteExtraction(int size) {
getRateCalculator().start(size);
// start the Progress Monitor
getProgressMonitor().beginTask(Messages.getMessage(getClass(), "extracting"), size); //$NON-NLS-1$
getProgressMonitor().setSubTask(getRateCalculator().calculateSubTask(getNumberOfRows(), getNumberErrors()));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ private void initLoadRateCalculator() {
try {
DataReader dao = (DataReader)getController().getDao();
getRateCalculator().start(dao.getTotalRows());
getProgressMonitor().setSubTask(getRateCalculator().calculateSubTask(getNumberOfRows(), getNumberErrors()));
} catch (Exception e) {
logger.error("Unable to get total rows to upload from CSV or database");
getRateCalculator().start(0);
Expand Down

0 comments on commit 9e1139a

Please sign in to comment.