mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-09 18:15:23 +02:00
Remove rseConfigDefaults and instead have System properties
This commit is contained in:
parent
f349b51b3f
commit
0038d5ee15
1 changed files with 0 additions and 58 deletions
|
@ -124,33 +124,11 @@ public class RSEUIPlugin extends SystemBasePlugin implements ISystemMessageProvi
|
||||||
* Initializes default preferences.
|
* Initializes default preferences.
|
||||||
*/
|
*/
|
||||||
public void initializeDefaultPreferences() {
|
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;
|
boolean showNewConnPromptPref = ISystemPreferencesConstants.DEFAULT_SHOWNEWCONNECTIONPROMPT;
|
||||||
dontShowLocalConnection = false;
|
dontShowLocalConnection = false;
|
||||||
dontShowProfilePageInitially = false;
|
dontShowProfilePageInitially = false;
|
||||||
|
|
||||||
|
|
||||||
String showNewConn = System.getProperty("rse.showNewConnectionPrompt");
|
String showNewConn = System.getProperty("rse.showNewConnectionPrompt");
|
||||||
|
|
||||||
if (showNewConn != null) {
|
if (showNewConn != null) {
|
||||||
|
@ -175,42 +153,6 @@ public class RSEUIPlugin extends SystemBasePlugin implements ISystemMessageProvi
|
||||||
dontShowProfilePageInitially = showProfileInitially.equals("false");
|
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);
|
RemoteSystemsPreferencePage.initDefaults(getPreferenceStore(), showNewConnPromptPref);
|
||||||
SystemCommunicationsPreferencePage.initDefaults(getPreferenceStore());
|
SystemCommunicationsPreferencePage.initDefaults(getPreferenceStore());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue