lexx.utils
Class Config

java.lang.Object
  |
  +--lexx.utils.Config

public final class Config
extends java.lang.Object

Static Factory class used to store settings regarding the project itself

Copyright (c) 2002-2003

Since:
20/03/2003
Version:
1.0
Author:
Mohammed Imran

Method Summary
static void beep()
           
static boolean beepOnErrors()
           
static boolean converseMemory()
          Ignore - as this is still being looked at
static boolean enableIncompleteComponents()
          This tells you wheither to enable components that are incomplete
static java.lang.String getClassesPath()
          The directory contaning the compiled classed
static ClientBase getClient()
          Returns a client if you are connect to a server
static java.awt.Frame getFrameForDialog()
           
static java.lang.String getJavaDocPath()
          The directory which contains the users javadoc
static java.lang.String getJavaRunTimePath()
           
static java.lang.String getJDKPath()
           
static java.lang.String getLibraryPath()
          The directory contaning any external libraries
static java.lang.String getProjectPath()
           
static java.util.Properties getProperties()
           
static java.lang.String getProperty(java.lang.String prop)
           
static java.util.List getRunnableList()
          Returns a list of classes that can be runned i.e.
static java.lang.String getSourceCodePath()
          The directory contaning the source code
static javax.swing.JLabel getStatusLabel()
           
static void insert(java.lang.String property, java.lang.String result)
          Adds something to the project settings
static boolean isDebug()
           
static boolean isJDKInstalled()
          Finds out if JDK or JRE is installed
static void loadJavaDoc(java.lang.Class cl)
          Loads the javadoc for the class
static void loadJavaDoc(java.lang.reflect.Field f)
          Loads the javadoc for the field
static void loadJavaDoc(java.lang.reflect.Method m)
          Loads the javadoc for the method
static void setBeepOnErrors(boolean ans)
           
static void setClient(ClientBase cl)
          Sets the client if you are connect to a server
static void setConverseMemory(boolean ans)
          Ignore - as this is still being looked at
static void setPackages(Packages p)
           
static void setProjectPath(java.lang.String path)
           
static void setRunnableList(java.util.List run)
          Stores the list of classes that can be runned into the project settings
static void setStatusLabel(javax.swing.JLabel label)
           
static void setupConfig(java.lang.String fileName, javax.swing.JLabel label, java.awt.Frame dialogFrame)
           
static boolean shouldDeleteCachedFiles()
           
static void updatePackagesClasses()
          Updates the Packages class when the directory containing the compiled classes has changed
static void updatePackagesLibraries()
          Updates the Packages class when the directory containing the external libraries has changed
static boolean useOldSyntaxHightlight()
          Uses my old alogorithm to perform syntax highlighting
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

shouldDeleteCachedFiles

public static boolean shouldDeleteCachedFiles()

enableIncompleteComponents

public static boolean enableIncompleteComponents()
This tells you wheither to enable components that are incomplete

Returns:
tells you wheither to enable components that are incomplete

setProjectPath

public static void setProjectPath(java.lang.String path)

setStatusLabel

public static void setStatusLabel(javax.swing.JLabel label)

loadJavaDoc

public static void loadJavaDoc(java.lang.Class cl)
Loads the javadoc for the class

Parameters:
cl - the class you wish to show the javadoc

loadJavaDoc

public static void loadJavaDoc(java.lang.reflect.Method m)
Loads the javadoc for the method

Parameters:
m - the method you wish to show the javadoc

loadJavaDoc

public static void loadJavaDoc(java.lang.reflect.Field f)
Loads the javadoc for the field

Parameters:
f - the field you wish to show the javadoc

converseMemory

public static boolean converseMemory()
Ignore - as this is still being looked at


setConverseMemory

public static void setConverseMemory(boolean ans)
Ignore - as this is still being looked at


getClient

public static ClientBase getClient()
Returns a client if you are connect to a server

Returns:
Returns a client if you are connect to a server

setClient

public static void setClient(ClientBase cl)
Sets the client if you are connect to a server

Parameters:
cl - the client that is connected to the server

useOldSyntaxHightlight

public static boolean useOldSyntaxHightlight()
Uses my old alogorithm to perform syntax highlighting

Returns:
if it can use my old alogorithm to perform syntax highlighting

getFrameForDialog

public static java.awt.Frame getFrameForDialog()

setupConfig

public static void setupConfig(java.lang.String fileName,
                               javax.swing.JLabel label,
                               java.awt.Frame dialogFrame)

isJDKInstalled

public static boolean isJDKInstalled()
Finds out if JDK or JRE is installed

Returns:
tells you if JDK is installed

getSourceCodePath

public static java.lang.String getSourceCodePath()
The directory contaning the source code

Returns:
The directory contaning the source code

getClassesPath

public static java.lang.String getClassesPath()
The directory contaning the compiled classed

Returns:
The directory contaning the compiled classed

getLibraryPath

public static java.lang.String getLibraryPath()
The directory contaning any external libraries

Returns:
The directory contaning any external libraries

getJavaDocPath

public static java.lang.String getJavaDocPath()
The directory which contains the users javadoc

Returns:
The directory which contains the users javadoc

setPackages

public static void setPackages(Packages p)

updatePackagesClasses

public static void updatePackagesClasses()
Updates the Packages class when the directory containing the compiled classes has changed


updatePackagesLibraries

public static void updatePackagesLibraries()
Updates the Packages class when the directory containing the external libraries has changed


getProperties

public static java.util.Properties getProperties()

getProperty

public static java.lang.String getProperty(java.lang.String prop)

getProjectPath

public static java.lang.String getProjectPath()

getStatusLabel

public static javax.swing.JLabel getStatusLabel()

insert

public static void insert(java.lang.String property,
                          java.lang.String result)
Adds something to the project settings


getJavaRunTimePath

public static java.lang.String getJavaRunTimePath()

getJDKPath

public static java.lang.String getJDKPath()

getRunnableList

public static java.util.List getRunnableList()
Returns a list of classes that can be runned i.e. contains public static void main(String[] args) method

Returns:
Returns a list of classes that can be runned i.e. contains public static void main(String[] args) method

isDebug

public static boolean isDebug()

setBeepOnErrors

public static void setBeepOnErrors(boolean ans)

beepOnErrors

public static boolean beepOnErrors()

beep

public static void beep()

setRunnableList

public static void setRunnableList(java.util.List run)
Stores the list of classes that can be runned into the project settings