1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 23:25:26 +02:00

[doc] Added internal comment to restoreWidgetValues() to document current selected system type history priorities

This commit is contained in:
Uwe Stieber 2007-07-26 09:41:20 +00:00
parent dc33640fab
commit bb7750de47

View file

@ -404,6 +404,12 @@ public class RSEMainNewConnectionWizard extends Wizard implements INewWizard, IS
protected void restoreWidgetValues() {
IDialogSettings dialogSettings = getDialogSettings();
if (dialogSettings != null) {
// Note: Current mode is that the remembered last selected system type id
// has priority over the type of a host selection within the remote
// systems view. We are leaving it that way for now out of consistency
// reason. If the host selection within the remote system view should
// get ever the priority, check for 'selectedSystemType == null' additional
// to the check for 'systemTypeId != null'.
String systemTypeId = dialogSettings.get(LAST_SELECTED_SYSTEM_TYPE_ID);
if (systemTypeId != null) {
IRSESystemType systemType = RSECorePlugin.getTheCoreRegistry().getSystemTypeById(systemTypeId);