Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

org.eclipse.rse.ui
Class SystemPreferencesManager

java.lang.Object
  extended by 
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.


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

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.


RSE
Release 3.0

Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire