1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 23:05:47 +02:00

Bug 528471 - Property change on Serial connection is no fully propagated (core)

Change-Id: I49e9a2383f13d16580679ac5338ce5cfd7c21a09
Signed-off-by: Julien Dehaudt <julien.dehaudt@st.com>
This commit is contained in:
Julien Dehaudt 2017-11-29 10:58:49 +01:00 committed by Greg Watson
parent 82645df3ce
commit a70e7b2b0e
2 changed files with 10 additions and 0 deletions

View file

@ -51,6 +51,12 @@ public class RemoteConnectionChangeEvent {
*/
public static final int CONNECTION_REMOVED = 1 << 5;
/**
* Event indicating the connection attributes had changed.
* @since 3.0
*/
public static final int ATTRIBUTES_CHANGED = 1 << 6;
private final IRemoteConnection connection;
private final int type;

View file

@ -318,6 +318,10 @@ public class RemoteConnectionWorkingCopy implements IRemoteConnectionWorkingCopy
throw new RemoteConnectionException(e);
}
if (newAttributes.size() > 0 || newSecureAttributes.size() > 0) {
original.fireConnectionChangeEvent(RemoteConnectionChangeEvent.ATTRIBUTES_CHANGED);
}
/*
* Reset state for isDirty()
*/