com.mytrendtimer.trendtimer
Class Plateform

java.lang.Object
  extended by com.mytrendtimer.trendtimer.Plateform

public class Plateform
extends java.lang.Object

We manage what is plateform dependant or linked to the environment.

Version:
v0.97.4
Author:
FRM

Constructor Summary
Plateform()
           
 
Method Summary
static java.lang.String getBrowser()
          Retreive the default browser for the plateform.
static java.lang.String getEditor()
          Retreive the default editor for the plateform based on etc/editor.properties file
static java.lang.String getEnvVariables()
          Retreive the environement variables for the plateform.
static java.lang.String getSlash()
          This is just a call to File.separator constant.
static java.lang.String getTail()
          Retreive the command to tail a file
static java.lang.String getTTHOME()
          Retreive the TTHOME dir.
static java.lang.String getVarTTHOME()
          Retreive the TTHOME variable.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Plateform

public Plateform()
Method Detail

getBrowser

public static java.lang.String getBrowser()
Retreive the default browser for the plateform.

Returns:
runBrowser

getEditor

public static java.lang.String getEditor()
Retreive the default editor for the plateform based on etc/editor.properties file

Returns:
runEditor

getEnvVariables

public static java.lang.String getEnvVariables()
Retreive the environement variables for the plateform. Add carriage return in long lines. (eg for the $PATH)

Returns:
runEditor

getSlash

public static java.lang.String getSlash()
This is just a call to File.separator constant. (was much worse before...)

Returns:
slash

getTail

public static java.lang.String getTail()
Retreive the command to tail a file

Returns:
tailCommand

getTTHOME

public static java.lang.String getTTHOME()
Retreive the TTHOME dir. Required to have a reference to find the config files. Then, config files are read and used later on (fi. baseDir). This should maybe read an environement variable ? Now, we use "user.dir".

Returns:
dirTTHOME

getVarTTHOME

public static java.lang.String getVarTTHOME()
Retreive the TTHOME variable. Required to have a reference to find the config files. Then, config files are read and used later on (fi. baseDir). This is unused as of 13 Oct 2007.

Returns:
value