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

[196838] Don't recreate local after it has been deleted

This commit is contained in:
David McKnight 2007-07-18 15:55:26 +00:00
parent 8ec6f28b5a
commit 26813602af

View file

@ -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)) {