From 0038d5ee151aa562ba5e62badc53219d5b9fac86 Mon Sep 17 00:00:00 2001 From: Kushal Munir < kmunir@ca.ibm.com> Date: Wed, 20 Sep 2006 14:34:46 +0000 Subject: [PATCH] Remove rseConfigDefaults and instead have System properties --- .../UI/org/eclipse/rse/ui/RSEUIPlugin.java | 58 ------------------- 1 file changed, 58 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 9127cf31596..4ab65ce24c0 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 @@ -124,33 +124,11 @@ public class RSEUIPlugin extends SystemBasePlugin implements ISystemMessageProvi * Initializes default preferences. */ public void initializeDefaultPreferences() { - - String productId = null; - - // get product - IProduct product = Platform.getProduct(); - - // get product ID if there is a product - if (product != null) { - productId = product.getId(); - } - else { - // DKM - why would we return just because there's no product id? - // letting this continue - //return; - } - - // Get reference to the plug-in registry - // IExtensionRegistry registry = Platform.getExtensionRegistry(); - - // Get configured extenders - // IConfigurationElement[] extensions = registry.getConfigurationElementsFor("org.eclipse.rse.ui", "rseConfigDefaults"); //$NON-NLS-1$ //$NON-NLS-2$ boolean showNewConnPromptPref = ISystemPreferencesConstants.DEFAULT_SHOWNEWCONNECTIONPROMPT; dontShowLocalConnection = false; dontShowProfilePageInitially = false; - String showNewConn = System.getProperty("rse.showNewConnectionPrompt"); if (showNewConn != null) { @@ -175,42 +153,6 @@ public class RSEUIPlugin extends SystemBasePlugin implements ISystemMessageProvi dontShowProfilePageInitially = showProfileInitially.equals("false"); } -/* if ( (extensions != null) && (extensions.length > 0)) - { - String showNewConn; - String showProfileInitially; - - for (int idx = 0; idx < extensions.length; idx++) - { - IConfigurationElement extension = extensions[idx]; - - String configProductId = extension.getAttribute("productId"); //$NON-NLS-1$ - - if (productId.equals(configProductId)) { - - showNewConn = extension.getAttribute("showNewConnectionPrompt"); - - if (showNewConn != null) - showNewConnPromptPref = showNewConn.equals("true"); - - showNewConn = extension.getAttribute("showLocalConnection"); //$NON-NLS-1$ - - if (showNewConn != null) - dontShowLocalConnection = showNewConn.equals("false"); //$NON-NLS-1$ - - enabledSystemTypes = extension.getAttribute("enableSystemTypes"); //$NON-NLS-1$ - - if ((enabledSystemTypes != null) && (enabledSystemTypes.length() == 0)) - enabledSystemTypes = null; - - showProfileInitially = extension.getAttribute("showProfilePage"); //$NON-NLS-1$ - - if (showProfileInitially != null) - dontShowProfilePageInitially = showProfileInitially.equals("false"); //$NON-NLS-1$ - } - } - }*/ - RemoteSystemsPreferencePage.initDefaults(getPreferenceStore(), showNewConnPromptPref); SystemCommunicationsPreferencePage.initDefaults(getPreferenceStore()); }