org.eclipse.rse.ui
Class SystemPreferencesManager
java.lang.Object
org.eclipse.rse.ui.SystemPreferencesManager
-
public class SystemPreferencesManager
- extends
Object
A utility class that encapsulates all global preferences for the remote system framework
for both core and UI preferences.
These include:
- The list of profile names that are active
- The default user Id per system type
- The global setting about whether to show filter pools
- The global setting about whether to show filter strings
-
This class should not be subclassed.
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
initDefaults
public static void initDefaults()
- Initialize our preference store with our defaults.
This is called once at plugin startup.
-
getShowLocalConnection
public static boolean getShowLocalConnection()
-
getShowProfilePage
public static boolean getShowProfilePage()
-
getCascadeUserActions
public static boolean getCascadeUserActions()
-
-
Returns:
- true if the user has elected to show user defined actions cascaded by profile
setCascadeUserActions
public static void setCascadeUserActions(boolean cascade)
- Sets if the user has elected to show user defined actions cascaded by profile.
Does not save the preferences. This must be done by the caller.
-
-
Parameters:
-
cascade
- whether or not to cascade user action menus -
See Also:
-
savePreferences()
getConnectionNamesOrder
public static
String[] getConnectionNamesOrder()
-
-
Returns:
- the ordered list of connection names.
This is how user arranged his connections in the system view.
getConnectionNamesOrder
public static
String[] getConnectionNamesOrder(
String profileName)
- Gets the user's preference for the order of the connection names within a given profile
-
-
Parameters:
-
profileName
- the name of the profile to return the connection names for.
-
Returns:
- an array of connection names for this profile in the order preferred by the user.
getConnectionNamesOrder
public static
String[] getConnectionNamesOrder(
IHost[] realityConnectionList,
String profileName)
- Gets the user's preference for the order of a given list of connections,
after resolving it against the actual list of connection names contained within
a specified profile.
Connections not in the given profile will be ignored.
-
-
Parameters:
-
realityConnectionList
- The list of connections that will be reordered according to
the user's preferred ordering. -
profileName
- the name of the profile that we will search for these connections.
-
Returns:
- the list of connection names from the given list and profile in the order
preferred by the user.
setConnectionNamesOrder
public static void setConnectionNamesOrder()
- Sets user's preference for the order of the connection names according to the
list kept in the system registry.
This resets any user-specified ordering of profiles since the SystemRegistry
has no concept of ordered profiles. The hosts inside a profile, though,
will be ordered according to user preference.
-
setConnectionNamesOrder
public static void setConnectionNamesOrder(
String[] connectionNames)
- Sets the ordered list of connection names.
This is how user arranged connections in the system view.
-
-
Parameters:
-
connectionNames
- an array of connection names in the order they are to be presented.
getFolderHistory
public static
String[] getFolderHistory()
-
-
Returns:
- the history for the folder combo box widget
setFolderHistory
public static void setFolderHistory(
String[] newHistory)
- Sets the history for the folder combo box widget.
Does not save the preferences. This must be done by the caller.
-
-
Parameters:
-
newHistory
- the names of the folders to be saved in the folder history -
See Also:
-
savePreferences()
getQualifyConnectionNames
public static boolean getQualifyConnectionNames()
-
-
Returns:
- true if the user has elected to show connection names qualified by profile
setQualifyConnectionNames
public static void setQualifyConnectionNames(boolean qualify)
- Sets if the user has elected to show connection names qualified by profile.
-
-
Parameters:
-
qualify
- whether or not to qualify the connection names in the UI.
getRememberState
public static boolean getRememberState()
-
-
Returns:
- true if the user has elected to remember the state of the Remote Systems View
setRememberState
public static void setRememberState(boolean remember)
- Sets if the user has elected to remember the state of RSE.
-
-
Parameters:
-
remember
- true if the state should be remembered.
getRestoreStateFromCache
public static boolean getRestoreStateFromCache()
- Return true if the user has elected to restore the state of the Remote Systems view from cached information
-
setRestoreStateFromCache
public static void setRestoreStateFromCache(boolean restore)
- Set if the user has elected to restore the state of the
Remote Systems View from cached information
-
-
Parameters:
-
restore
- whether or not to restore the state of RSE from cached information.
getShowFilterPools
public static boolean getShowFilterPools()
- Return true if the user has elected to show filter pools in the Remote System Explorer view
-
setShowFilterPools
public static void setShowFilterPools(boolean show)
- Sets whether or not to show filter pools.
-
-
Parameters:
-
show
- true if we want to show the filter pools
getShowNewConnectionPrompt
public static boolean getShowNewConnectionPrompt()
-
-
Returns:
- true if the user has elected to show the "New Connection..." prompt
in the Remote Systems View
setShowNewConnectionPrompt
public static void setShowNewConnectionPrompt(boolean show)
- Sets whether to show the new connection... prompt in the Remote System Explorer view.
-
-
Parameters:
-
show
- true if we want to show the filter pools
getVerifyConnection
public static boolean getVerifyConnection()
-
-
Returns:
- whether to turn on "Verify connection" checkbox on the New Connection wizard
setVerifyConnection
public static void setVerifyConnection(boolean verify)
- Sets whether connections should be verified by the New Connection wizard.
-
-
Parameters:
-
verify
- true if the connection should be verified
getWidgetHistory
public static
String[] getWidgetHistory(
String key)
- Return the history for a widget given an arbitrary key uniquely identifying it
-
setWidgetHistory
public static void setWidgetHistory(
String key,
String[] newHistory)
- Sets the history for a widget given an arbitrary key uniquely identifying it.
Does not save the preferences. This must be done by the caller.
-
-
See Also:
-
savePreferences()
savePreferences
public static void savePreferences()
- Save the preference stores.
-
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.