This implementation supports cancelation. The default implementations of the other methods do nothing.
This class can be used without OSGi running.
ProgressMonitor
533534535536537538539540541542543544545546547
if (favoriteArr.length > 5) { // if we have more then 5 favorites, we show a progress bar try { monitor = MainFrame.getInstance().createProgressMonitor(); }catch(Exception e) {e.printStackTrace(); monitor = new NullProgressMonitor(); } } else { monitor = new NullProgressMonitor(); } monitor.setMaximum(favoriteArr.length); monitor.setMessage(mLocalizer.msg("updatingFavorites","Updating favorites")); for (int i=0;i<favoriteArr.length; i++) {