mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-03 14:25:37 +02:00
Merge "Bug 528471 - Property change on Serial connection is no fully propagated (serial)"
This commit is contained in:
commit
91e297a83a
1 changed files with 11 additions and 0 deletions
|
@ -20,7 +20,9 @@ import org.eclipse.cdt.serial.StopBits;
|
|||
import org.eclipse.remote.core.IRemoteCommandShellService;
|
||||
import org.eclipse.remote.core.IRemoteConnection;
|
||||
import org.eclipse.remote.core.IRemoteConnection.Service;
|
||||
import org.eclipse.remote.core.IRemoteConnectionChangeListener;
|
||||
import org.eclipse.remote.core.IRemoteProcess;
|
||||
import org.eclipse.remote.core.RemoteConnectionChangeEvent;
|
||||
import org.eclipse.remote.serial.internal.core.Activator;
|
||||
import org.eclipse.remote.serial.internal.core.Messages;
|
||||
|
||||
|
@ -31,6 +33,15 @@ public class SerialPortConnection implements ISerialPortService, IRemoteCommandS
|
|||
|
||||
private SerialPortConnection(IRemoteConnection remoteConnection) {
|
||||
this.remoteConnection = remoteConnection;
|
||||
this.remoteConnection.addConnectionChangeListener(new IRemoteConnectionChangeListener() {
|
||||
|
||||
@Override
|
||||
public void connectionChanged(RemoteConnectionChangeEvent event) {
|
||||
if (event.getType() == RemoteConnectionChangeEvent.ATTRIBUTES_CHANGED) {
|
||||
serialPort = null;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public static class Factory implements IRemoteConnection.Service.Factory {
|
||||
|
|
Loading…
Add table
Reference in a new issue