Skip to content

Commit

Permalink
Merge pull request #952 from ashitsalesforce/master
Browse files Browse the repository at this point in the history
minor improvement in showing results progress in UI
  • Loading branch information
ashitsalesforce authored Jan 20, 2024
2 parents fee014c + 9e1139a commit 817596e
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 817596e

Please sign in to comment.