| java.lang.Object org.eclipse.jdt.launching.AbstractVMInstallType org.eclipse.jdt.internal.launching.StandardVMType
All known Subclasses: org.eclipse.jdt.internal.launching.macosx.MacOSXVMInstallType, org.eclipse.jdt.internal.launching.Standard11xVMType,
StandardVMType | public class StandardVMType extends AbstractVMInstallType (Code) | | A VM install type for VMs the conform to the standard
JDK installation layout.
|
Method Summary | |
protected boolean | canDetectDefaultSystemLibraries(File javaHome, File javaExecutable) Return true if the appropriate system libraries can be found for the
specified java executable, false otherwise. | public File | detectInstallLocation() | public void | disposeVMInstall(String id) | protected IVMInstall | doCreateVMInstall(String id) | public static File | findJavaExecutable(File vmInstallLocation) Starting in the specified VM install location, attempt to find the 'java' executable
file. | protected static List | gatherAllLibraries(String[] dirPaths) Returns a list of all zip's and jars contained in the given directories. | protected LibraryInfo | generateLibraryInfo(File javaHome, File javaExecutable) Generates library information for the given java executable. | protected File | getDefaultEndorsedDirectory(File installLocation) Returns the default location of the endorsed directory, based on the
given install location. | protected File | getDefaultExtensionDirectory(File installLocation) Returns the default location of the extension directory, based on the given
install location. | public URL | getDefaultJavadocLocation(File installLocation) | protected static URL | getDefaultJavadocLocation(String version) Returns a default Javadoc location for a language version, or null . | protected LibraryInfo | getDefaultLibraryInfo(File installLocation) Returns default library information for the given install location. | public LibraryLocation[] | getDefaultLibraryLocations(File installLocation) NOTE: We do not add libraries from the "endorsed" directory explicitly, as
the bootpath contains these entries already (if they exist). | protected IPath | getDefaultPackageRootPath() | protected String | getDefaultRootPath() | protected IPath | getDefaultSystemLibrary(File javaHome) Return an IPath corresponding to the single library file containing the
standard Java classes for most VMs version 1.2 and above. | protected IPath | getDefaultSystemLibrarySource(File libLocation) Returns a path to the source attachment for the given libaray, or
an empty path if none. | public String | getDefaultVMArguments(File installLocation) | protected synchronized LibraryInfo | getLibraryInfo(File javaHome, File javaExecutable) Return library information corresponding to the specified install
location. | public String | getName() | protected String | getVMVersion(File javaHome, File javaExecutable) Returns the version of the VM at the given location, with the given
executable. | protected LibraryInfo | parseLibraryInfo(IProcess process) Parses the output from 'LibraryDetector'. | protected String[] | parsePaths(String paths) | protected void | setDefaultRootPath(String defaultRootPath) | public IStatus | validateInstallLocation(File javaHome) |
ID_STANDARD_VM_TYPE | final public static String ID_STANDARD_VM_TYPE(Code) | | |
canDetectDefaultSystemLibraries | protected boolean canDetectDefaultSystemLibraries(File javaHome, File javaExecutable)(Code) | | Return true if the appropriate system libraries can be found for the
specified java executable, false otherwise.
|
detectInstallLocation | public File detectInstallLocation()(Code) | | |
disposeVMInstall | public void disposeVMInstall(String id)(Code) | | |
findJavaExecutable | public static File findJavaExecutable(File vmInstallLocation)(Code) | | Starting in the specified VM install location, attempt to find the 'java' executable
file. If found, return the corresponding File object, otherwise return
null .
|
gatherAllLibraries | protected static List gatherAllLibraries(String[] dirPaths)(Code) | | Returns a list of all zip's and jars contained in the given directories.
Parameters: dirPaths - a list of absolute paths of directories to search List of all zip's and jars |
generateLibraryInfo | protected LibraryInfo generateLibraryInfo(File javaHome, File javaExecutable)(Code) | | Generates library information for the given java executable. A main
program is run (org.eclipse.jdt.internal.launching.support.
LibraryDetector ), that dumps the system properties for bootpath
and extension directories. This output is then parsed and cached for
future reference.
library info or null if none |
getDefaultEndorsedDirectory | protected File getDefaultEndorsedDirectory(File installLocation)(Code) | | Returns the default location of the endorsed directory, based on the
given install location. The resulting file may not exist, or be
null if an endorsed directory is not supported.
Parameters: installLocation - default endorsed directory or null |
getDefaultExtensionDirectory | protected File getDefaultExtensionDirectory(File installLocation)(Code) | | Returns the default location of the extension directory, based on the given
install location. The resulting file may not exist, or be null
if an extension directory is not supported.
Parameters: installLocation - default extension directory or null |
getDefaultJavadocLocation | public URL getDefaultJavadocLocation(File installLocation)(Code) | | |
getDefaultJavadocLocation | protected static URL getDefaultJavadocLocation(String version)(Code) | | Returns a default Javadoc location for a language version, or null .
Parameters: version - language version such as "1.4" URL to default Javadoc location, or null |
getDefaultLibraryInfo | protected LibraryInfo getDefaultLibraryInfo(File installLocation)(Code) | | Returns default library information for the given install location.
Parameters: installLocation - LibraryInfo |
getDefaultPackageRootPath | protected IPath getDefaultPackageRootPath()(Code) | | |
getDefaultRootPath | protected String getDefaultRootPath()(Code) | | |
getDefaultSystemLibrary | protected IPath getDefaultSystemLibrary(File javaHome)(Code) | | Return an IPath corresponding to the single library file containing the
standard Java classes for most VMs version 1.2 and above.
|
getDefaultSystemLibrarySource | protected IPath getDefaultSystemLibrarySource(File libLocation)(Code) | | Returns a path to the source attachment for the given libaray, or
an empty path if none.
Parameters: libLocation - a path to the source attachment for the given library, oran empty path if none |
getDefaultVMArguments | public String getDefaultVMArguments(File installLocation)(Code) | | |
getLibraryInfo | protected synchronized LibraryInfo getLibraryInfo(File javaHome, File javaExecutable)(Code) | | Return library information corresponding to the specified install
location. If the information does not exist, create it using the given Java
executable.
|
getVMVersion | protected String getVMVersion(File javaHome, File javaExecutable)(Code) | | Returns the version of the VM at the given location, with the given
executable.
Parameters: javaHome - Parameters: javaExecutable - String |
parseLibraryInfo | protected LibraryInfo parseLibraryInfo(IProcess process)(Code) | | Parses the output from 'LibraryDetector'.
|
setDefaultRootPath | protected void setDefaultRootPath(String defaultRootPath)(Code) | | |
validateInstallLocation | public IStatus validateInstallLocation(File javaHome)(Code) | | |
|
|