From bb7750de47508fb5ab3f83e734bbd53205fcc1f0 Mon Sep 17 00:00:00 2001 From: Uwe Stieber Date: Thu, 26 Jul 2007 09:41:20 +0000 Subject: [PATCH] [doc] Added internal comment to restoreWidgetValues() to document current selected system type history priorities --- .../wizards/newconnection/RSEMainNewConnectionWizard.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/wizards/newconnection/RSEMainNewConnectionWizard.java b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/wizards/newconnection/RSEMainNewConnectionWizard.java index 8be2978cd0e..083552ac565 100644 --- a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/wizards/newconnection/RSEMainNewConnectionWizard.java +++ b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/wizards/newconnection/RSEMainNewConnectionWizard.java @@ -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);