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 the set of globally defined libraries and JDKs.


Field Summary
static GlobalArrayProperty searchPath
           
 
Method Summary
static PathSetCollection add(Url libDirUrl, java.lang.String name, boolean isDefault, boolean isDeletable)
          Add a new libraryUrl to the and prepend it to the globalPath.
static PathSetCollection[] getFullLibPath()
          Get all path set collections that are associated with the globalPath
static JDKPathSet getJDK(java.lang.String name)
          Finds a JDK matching the name supplied in the global search path.
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 in the global search path.
static void save()
          Saves the global set of library and JDK definitions to disk.
static void setFullLibPath(PathSetCollection[] collections)
          Set all path set collections that are associated with the globalPath
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
 

Field Detail

searchPath

public static GlobalArrayProperty searchPath
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()

add

public static PathSetCollection add(Url libDirUrl,
                                    java.lang.String name,
                                    boolean isDefault,
                                    boolean isDeletable)
Add a new libraryUrl to the and prepend it to the globalPath. This loads all library definitions from the given url, overlaying them on top of the current global state.

save

public static void save()
Saves the global 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.

getFullLibPath

public static PathSetCollection[] getFullLibPath()
Get all path set collections that are associated with the globalPath

setFullLibPath

public static void setFullLibPath(PathSetCollection[] collections)
Set all path set collections that are associated with the globalPath

getLibrary

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

Finds a library matching the name supplied in the global search path. 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 in the global search path. 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.