JavaScript Development Tools
Release 3.2

org.eclipse.wst.jsdt.core.compiler.libraries
Class SystemLibraryLocation

java.lang.Object
  extended by org.eclipse.wst.jsdt.core.compiler.libraries.SystemLibraryLocation
All Implemented Interfaces:
LibraryLocation

public class SystemLibraryLocation
extends Object
implements LibraryLocation

Provisional API: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.


Field Summary
static char[] LIBRARY_PLUGIN_DIRECTORY
           
static char[] LIBRARY_RUNTIME_DIRECTORY
           
static char[] SYSTEM_LIBARAY_NAME
           
 
Constructor Summary
SystemLibraryLocation()
           
 
Method Summary
protected static void copyFile(InputStream src, File dst)
           
 char[][] getAllFilesInPluginDirectory(String directory)
           
static LibraryLocation getInstance()
           
 char[][] getLibraryFileNames()
           
 String getLibraryPath(char[] name)
           
 String getLibraryPath(String name)
           
 IPath getLibraryPathInPlugin()
           
protected  String getPluginId()
           
 IPath getWorkingLibPath()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYSTEM_LIBARAY_NAME

public static final char[] SYSTEM_LIBARAY_NAME

LIBRARY_RUNTIME_DIRECTORY

public static final char[] LIBRARY_RUNTIME_DIRECTORY

LIBRARY_PLUGIN_DIRECTORY

public static final char[] LIBRARY_PLUGIN_DIRECTORY
Constructor Detail

SystemLibraryLocation

public SystemLibraryLocation()
Method Detail

getInstance

public static LibraryLocation getInstance()

getLibraryPathInPlugin

public IPath getLibraryPathInPlugin()
Specified by:
getLibraryPathInPlugin in interface LibraryLocation
Returns:
relative path within the plugin library files are stored

getLibraryFileNames

public char[][] getLibraryFileNames()
Specified by:
getLibraryFileNames in interface LibraryLocation
Returns:
a list of files in the library

getPluginId

protected String getPluginId()

getAllFilesInPluginDirectory

public char[][] getAllFilesInPluginDirectory(String directory)

getWorkingLibPath

public IPath getWorkingLibPath()
Specified by:
getWorkingLibPath in interface LibraryLocation
Returns:
working location to store library files.

getLibraryPath

public String getLibraryPath(String name)
Specified by:
getLibraryPath in interface LibraryLocation
Returns:
path to the given library name

getLibraryPath

public String getLibraryPath(char[] name)
Specified by:
getLibraryPath in interface LibraryLocation
Returns:
path to the given library name

copyFile

protected static void copyFile(InputStream src,
                               File dst)
                        throws IOException
Throws:
IOException

JavaScript Development Tools
Release 3.2

Copyright (c) IBM Corp. and others 2000, 2010. All Rights Reserved.