public void statusChanged(ProgressEvent event) { if ("Execute tasks".equals(event.getDescription())) { taskNum[0]++; } } });
@Override public boolean apply(ProgressEvent event) { String description = event.getDescription(); boolean shouldShow = !this.recentlySeen.contains(description); this.recentlySeen.add(description); return shouldShow; } };
@Override public void statusChanged(ProgressEvent arg0) { getLog().info(arg0.getDescription()); } }
public void statusChanged(ProgressEvent event) { toolingLogger.log(event.getDescription()); } });
/** * Delegates the event to the current Eclipse target monitor. * * @param event the event to delegate */ @Override public void statusChanged(ProgressEvent event) { if (this.monitor.isCanceled()) { return; } if (!this.eventFilter.apply(event)) { return; } this.monitor.setWorkRemaining(100); this.monitor.worked(1); this.monitor.subTask(event.getDescription()); }