|
RSE Release 3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.rse.ui.SystemPreferencesManager
public class SystemPreferencesManager
A utility class that encapsulates all global preferences for the remote system framework for both core and UI preferences.
These include:
Method Summary | |
---|---|
static boolean |
getCascadeUserActions()
|
static String[] |
getConnectionNamesOrder()
|
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. |
static String[] |
getConnectionNamesOrder(String profileName)
Gets the user's preference for the order of the connection names within a given profile |
static String[] |
getFolderHistory()
|
static boolean |
getQualifyConnectionNames()
|
static boolean |
getRememberState()
|
static boolean |
getRestoreStateFromCache()
Return true if the user has elected to restore the state of the Remote Systems view from cached information |
static boolean |
getShowFilterPools()
Return true if the user has elected to show filter pools in the Remote System Explorer view |
static boolean |
getShowLocalConnection()
|
static boolean |
getShowNewConnectionPrompt()
|
static boolean |
getShowProfilePage()
|
static boolean |
getVerifyConnection()
|
static String[] |
getWidgetHistory(String key)
Return the history for a widget given an arbitrary key uniquely identifying it |
static void |
initDefaults()
Initialize our preference store with our defaults. |
static void |
savePreferences()
Save the preference stores. |
static void |
setCascadeUserActions(boolean cascade)
Sets if the user has elected to show user defined actions cascaded by profile. |
static void |
setConnectionNamesOrder()
Sets user's preference for the order of the connection names according to the list kept in the system registry. |
static void |
setConnectionNamesOrder(String[] connectionNames)
Sets the ordered list of connection names. |
static void |
setFolderHistory(String[] newHistory)
Sets the history for the folder combo box widget. |
static void |
setQualifyConnectionNames(boolean qualify)
Sets if the user has elected to show connection names qualified by profile. |
static void |
setRememberState(boolean remember)
Sets if the user has elected to remember the state of RSE. |
static void |
setRestoreStateFromCache(boolean restore)
Set if the user has elected to restore the state of the Remote Systems View from cached information |
static void |
setShowFilterPools(boolean show)
Sets whether or not to show filter pools. |
static void |
setShowNewConnectionPrompt(boolean show)
Sets whether to show the new connection... prompt in the Remote System Explorer view. |
static void |
setVerifyConnection(boolean verify)
Sets whether connections should be verified by the New Connection wizard. |
static void |
setWidgetHistory(String key,
String[] newHistory)
Sets the history for a widget given an arbitrary key uniquely identifying it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void initDefaults()
public static boolean getShowLocalConnection()
public static boolean getShowProfilePage()
public static boolean getCascadeUserActions()
public static void setCascadeUserActions(boolean cascade)
cascade
- whether or not to cascade user action menussavePreferences()
public static String[] getConnectionNamesOrder()
public static String[] getConnectionNamesOrder(String profileName)
profileName
- the name of the profile to return the connection names for.
public static String[] getConnectionNamesOrder(IHost[] realityConnectionList, String profileName)
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.
public static void setConnectionNamesOrder()
public static void setConnectionNamesOrder(String[] connectionNames)
connectionNames
- an array of connection names in the order they are to be presented.public static String[] getFolderHistory()
public static void setFolderHistory(String[] newHistory)
newHistory
- the names of the folders to be saved in the folder historysavePreferences()
public static boolean getQualifyConnectionNames()
public static void setQualifyConnectionNames(boolean qualify)
qualify
- whether or not to qualify the connection names in the UI.public static boolean getRememberState()
public static void setRememberState(boolean remember)
remember
- true if the state should be remembered.public static boolean getRestoreStateFromCache()
public static void setRestoreStateFromCache(boolean restore)
restore
- whether or not to restore the state of RSE from cached information.public static boolean getShowFilterPools()
public static void setShowFilterPools(boolean show)
show
- true if we want to show the filter poolspublic static boolean getShowNewConnectionPrompt()
public static void setShowNewConnectionPrompt(boolean show)
show
- true if we want to show the filter poolspublic static boolean getVerifyConnection()
public static void setVerifyConnection(boolean verify)
verify
- true if the connection should be verifiedpublic static String[] getWidgetHistory(String key)
public static void setWidgetHistory(String key, String[] newHistory)
savePreferences()
public static void savePreferences()
|
RSE Release 3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |