From 26813602afd9e4dcc4bebb18822014e173ab8a6c Mon Sep 17 00:00:00 2001 From: David McKnight Date: Wed, 18 Jul 2007 15:55:26 +0000 Subject: [PATCH] [196838] Don't recreate local after it has been deleted --- .../UI/org/eclipse/rse/ui/RSEUIPlugin.java | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/RSEUIPlugin.java b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/RSEUIPlugin.java index 74570144b75..b710e68316b 100644 --- a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/RSEUIPlugin.java +++ b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/RSEUIPlugin.java @@ -109,24 +109,7 @@ public class RSEUIPlugin extends SystemBasePlugin implements ISystemMessageProvi SystemResourceListener listener = SystemResourceListener.getListener(remoteSystemsProject); SystemResourceManager.startResourceEventListening(listener); - /* - // new support to allow products to not pre-create a local connection -// if (SystemResourceManager.isFirstTime() && SystemPreferencesManager.getShowLocalConnection()) { - if (SystemPreferencesManager.getShowLocalConnection()) { - // create the connection only if the local system type is enabled - IRSESystemType systemType = RSECorePlugin.getTheCoreRegistry().getSystemTypeById(IRSESystemType.SYSTEMTYPE_LOCAL_ID); - if (systemType != null) { - RSESystemTypeAdapter adapter = (RSESystemTypeAdapter)(systemType.getAdapter(RSESystemTypeAdapter.class)); - if (adapter != null && adapter.isEnabled(systemType)) { - ISystemProfileManager profileManager = SystemProfileManager.getDefault(); - ISystemProfile profile = profileManager.getDefaultPrivateSystemProfile(); - String userName = System.getProperty("user.name"); //$NON-NLS-1$ - registry.createLocalHost(profile, SystemResources.TERM_LOCAL, userName); - } - } - } - */ - + // determining whether to create an initial local connection Preferences prefs = RSEUIPlugin.getDefault().getPluginPreferences(); String key = "localConnectionCreated.mark"; //$NON-NLS-1$ if (!prefs.getBoolean(key)) {