use of io.sloeber.ui.monitor.internal.PlotterListener in project arduino-eclipse-plugin by Sloeber.
the class PlotterView method registerSerialService.
/**
* There we actually add the listener to the service.
*
* @param service
*/
private void registerSerialService(Serial service) {
if ((this.myPlotterListener == null) && (this.myPlotter != null)) {
this.myPlotterListener = new PlotterListener(this.myPlotter);
this.mySerial = service;
PlatformUI.getWorkbench().getDisplay().syncExec(new Runnable() {
@Override
public void run() {
PlotterView.this.mySerial.addListener(PlotterView.this.myPlotterListener);
PlotterView.this.myPlotter.setStatus(Messages.plotterViewConnectedTo + PlotterView.this.mySerial.toString());
PlotterView.this.myPlotter.setShowLabels(true);
PlotterView.this.myPlotter.setnewBackgroundImage();
}
});
}
}
Aggregations