com.borland.jbuilder.paths
Class PathSetManager

java.lang.Object
  |
  +--com.borland.jbuilder.paths.PathSetManager

public final class PathSetManager
extends java.lang.Object

All PathSetManager members are static, operating on a set of globally defined libraries and JDKs.


Method Summary
static JDKPathSet getJDK(java.lang.String name)
          Finds a JDK matching the name supplied.
static java.util.ArrayList getJDKs()
           
static long getLastModified()
           
static java.util.ArrayList getLibraries()
           
static PathSet getLibrary(java.lang.String name)
          Finds a library matching the name supplied.
static void save()
          Saves the current set of library and JDK definitions to disk.
static void setJDKs(java.util.ArrayList jdks)
           
static void setLibraries(java.util.ArrayList libraries)
           
static void updateLastModified()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLibraries

public static java.util.ArrayList getLibraries()

getJDKs

public static java.util.ArrayList getJDKs()

setLibraries

public static void setLibraries(java.util.ArrayList libraries)

setJDKs

public static void setJDKs(java.util.ArrayList jdks)

getLastModified

public static long getLastModified()

updateLastModified

public static void updateLastModified()

save

public static void save()
Saves the current set of library and JDK definitions to disk. No actual disk access is performed if no changes have been made since the last save or the initial load.

getLibrary

public static PathSet getLibrary(java.lang.String name)

Finds a library matching the name supplied. If no match is found a new library with the desired name is created with no path entries.

Parameters:
name - The desired library name.
Returns:
The best matching PathSet instance or a newly-created empty PathSet is returned. This value with never be null.

getJDK

public static JDKPathSet getJDK(java.lang.String name)

Finds a JDK matching the name supplied. If no match is found the first available JDK is returned.

Parameters:
name - The name of the desired JDK.
Returns:
The best matching JDKPathSet instance is returned. This value will never be null.