public ChangeStatusListener( @NotNull final EventDispatcher<BuildServerListener> listener, @NotNull final ChangeStatusUpdater updater) { myUpdater = updater; listener.addListener( new BuildServerAdapter() { @Override public void changesLoaded(SRunningBuild build) { updateBuildStatus(build, true); } @Override public void buildFinished(SRunningBuild build) { updateBuildStatus(build, false); } }); }
public CodeMetricsPropertiesExtension( @NotNull final EventDispatcher<AgentLifeCycleListener> events, @NotNull final MetricsExeSearcher searcher) { mySearcher = searcher; events.addListener(this); }