g-Eclipse
Release 1.0.0

eu.geclipse.core
Class Preferences

java.lang.Object
  extended by eu.geclipse.core.Preferences

public class Preferences
extends java.lang.Object

This class gives easy access to the core preferences of g-Eclipse.


Constructor Summary
Preferences()
           
 
Method Summary
static java.lang.String getDefaultVoName()
          Get the name of the current default VO.
static boolean getJobUpdaterCancelBehaviour()
          Gets the behaviour of the global job status updating when user cancels token request of the job status updater.
static int getUpdateJobsPeriod()
          Gets the time period (in seconds)
static boolean getUpdateJobsStatus()
          Gets the status of the job updates
static int getUpdatersLimit()
          Gets the limit of the simultaneously running job status updaters
static java.net.URLConnection getURLConnection(java.net.URL url)
          Get an URLConnection that is initialised with the current proxy and timeout settings.
static void save()
          Save these preferences to the preference store.
static void setDefaultVoName(java.lang.String defaultVoName)
          Set the name of the current default VO.
static void setJobUpdaterCancelBehaviour(boolean cancel)
           
static void setUpdateJobsPeriod(int period)
          Sets the time period (in miliseconds) between job updates
static void setUpdateJobsStatus(boolean status)
          Sets the status of the job updates
static void setUpdatersLimit(int limit)
          Sets the limit of the simultaneously running job status updaters
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Preferences

public Preferences()
Method Detail

getURLConnection

public static java.net.URLConnection getURLConnection(java.net.URL url)
                                               throws java.io.IOException
Get an URLConnection that is initialised with the current proxy and timeout settings.

Parameters:
url - The URL from which to create the connection.
Returns:
The connection created from the specified URL and initialised with the current proxy and timeout settings.
Throws:
java.io.IOException - If an IO-error occurs while this connection is created.

setDefaultVoName

public static void setDefaultVoName(java.lang.String defaultVoName)
Set the name of the current default VO.

Parameters:
defaultVoName - The name of the default VO.

getDefaultVoName

public static java.lang.String getDefaultVoName()
Get the name of the current default VO.

Returns:
The name of the default VO.

setUpdateJobsStatus

public static void setUpdateJobsStatus(boolean status)
Sets the status of the job updates

Parameters:
status - Status of updates to be set

getUpdateJobsStatus

public static boolean getUpdateJobsStatus()
Gets the status of the job updates

Returns:
Status of job updates

setJobUpdaterCancelBehaviour

public static void setJobUpdaterCancelBehaviour(boolean cancel)

getJobUpdaterCancelBehaviour

public static boolean getJobUpdaterCancelBehaviour()
Gets the behaviour of the global job status updating when user cancels token request of the job status updater.

Returns:
true if cancel should turn off global updating.
false if cancel shouldn't change the status of the global updating.

setUpdateJobsPeriod

public static void setUpdateJobsPeriod(int period)
Sets the time period (in miliseconds) between job updates

Parameters:
period - Period between job status' updates

getUpdateJobsPeriod

public static int getUpdateJobsPeriod()
Gets the time period (in seconds)

Returns:
Time in seconds between job status' udpates

setUpdatersLimit

public static void setUpdatersLimit(int limit)
Sets the limit of the simultaneously running job status updaters

Parameters:
limit - Maximum number of the running updaters.

getUpdatersLimit

public static int getUpdatersLimit()
Gets the limit of the simultaneously running job status updaters

Returns:
Maximum number of the running updaters.

save

public static void save()
Save these preferences to the preference store. This method just calls Activator.getDefault().savePluginPreferences();.


g-Eclipse
Release 1.0.0