mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 08:46:02 +02:00
Bug 528471 - Property change on Serial connection is no fully propagated (serial)
Change-Id: Iaf733b65f700d4c8ba331a1a0ee9e90db71adf11 Signed-off-by: Julien Dehaudt <julien.dehaudt@st.com>
This commit is contained in:
parent
a70e7b2b0e
commit
a24905d66b
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.IRemoteCommandShellService;
|
||||||
import org.eclipse.remote.core.IRemoteConnection;
|
import org.eclipse.remote.core.IRemoteConnection;
|
||||||
import org.eclipse.remote.core.IRemoteConnection.Service;
|
import org.eclipse.remote.core.IRemoteConnection.Service;
|
||||||
|
import org.eclipse.remote.core.IRemoteConnectionChangeListener;
|
||||||
import org.eclipse.remote.core.IRemoteProcess;
|
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.Activator;
|
||||||
import org.eclipse.remote.serial.internal.core.Messages;
|
import org.eclipse.remote.serial.internal.core.Messages;
|
||||||
|
|
||||||
|
@ -31,6 +33,15 @@ public class SerialPortConnection implements ISerialPortService, IRemoteCommandS
|
||||||
|
|
||||||
private SerialPortConnection(IRemoteConnection remoteConnection) {
|
private SerialPortConnection(IRemoteConnection remoteConnection) {
|
||||||
this.remoteConnection = 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 {
|
public static class Factory implements IRemoteConnection.Service.Factory {
|
||||||
|
|
Loading…
Add table
Reference in a new issue