Revision 09dcb999
Added by Cherian Mathew over 8 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/RemotingLoginDialog.java | ||
---|---|---|
158 | 158 |
// connect(devRemoteSource); |
159 | 159 |
// } else { |
160 | 160 |
createContents(); |
161 |
if(serverName == null && instanceName == null) { |
|
162 |
readPrefLastServerInstance(); |
|
163 |
} |
|
164 |
|
|
161 | 165 |
populateCdmServerCombo(); |
162 | 166 |
shlConnect.open(); |
163 | 167 |
shlConnect.layout(); |
... | ... | |
689 | 693 |
} |
690 | 694 |
} |
691 | 695 |
|
696 |
private void readPrefLastServerInstance() { |
|
697 |
IEclipsePreferences preferences = ConfigurationScope.INSTANCE.getNode(STORE_PREFERENCES_NODE); |
|
698 |
Preferences lastServerInstancePrefs = preferences.node(LAST_SERVER_INSTANCE_NODE); |
|
699 |
|
|
700 |
serverName = lastServerInstancePrefs.get(LAST_SERVER_KEY, null); |
|
701 |
instanceName = lastServerInstancePrefs.get(LAST_INSTANCE_KEY, null); |
|
702 |
} |
|
703 |
|
|
692 | 704 |
private void emptyCredentials() { |
693 | 705 |
txtLogin.setText(""); |
694 | 706 |
txtLogin.setText(""); |
Also available in: Unified diff
#5209 Implement auto selection of last successfully connected server / instance