mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 18:26:01 +02:00
Bug 462503 - Fix for ConnectionExistsException in Remote Connections
preference page Change-Id: Ib49d82a51568d99d7db4bcf0e4d39b00f8c444ed Signed-off-by: Greg Watson <g.watson@computer.org>
This commit is contained in:
parent
cbb9d14e0b
commit
bc00fb852f
1 changed files with 6 additions and 1 deletions
|
@ -298,7 +298,6 @@ public class RemoteConnectionWorkingCopy implements IRemoteConnectionWorkingCopy
|
||||||
} catch (BackingStoreException e1) {
|
} catch (BackingStoreException e1) {
|
||||||
throw new RemoteConnectionException(e1);
|
throw new RemoteConnectionException(e1);
|
||||||
}
|
}
|
||||||
newAttributes.clear();
|
|
||||||
|
|
||||||
ISecurePreferences securePrefs = original.getSecurePreferences();
|
ISecurePreferences securePrefs = original.getSecurePreferences();
|
||||||
for (Map.Entry<String, String> entry : newSecureAttributes.entrySet()) {
|
for (Map.Entry<String, String> entry : newSecureAttributes.entrySet()) {
|
||||||
|
@ -318,7 +317,13 @@ public class RemoteConnectionWorkingCopy implements IRemoteConnectionWorkingCopy
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new RemoteConnectionException(e);
|
throw new RemoteConnectionException(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Reset state for isDirty()
|
||||||
|
*/
|
||||||
|
newAttributes.clear();
|
||||||
newSecureAttributes.clear();
|
newSecureAttributes.clear();
|
||||||
|
newName = null;
|
||||||
|
|
||||||
connectionType.addConnection(original);
|
connectionType.addConnection(original);
|
||||||
if (added) {
|
if (added) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue