public interface IVMInstallType
This interface is intended to be implemented by clients that contribute
to the "org.eclipse.jdt.launching.vmInstallTypes"
extension point.
IVMInstall
Modifier and Type | Method and Description |
---|---|
IVMInstall |
createVMInstall(String id)
Creates a new instance of this VM Install type.
|
File |
detectInstallLocation()
Tries to detect an installed VM that matches this VM install type.
|
void |
disposeVMInstall(String id)
Remove the VM associated with the given id from the set of VMs managed by
this VM type.
|
IVMInstall |
findVMInstall(String id)
Finds the VM with the given id.
|
IVMInstall |
findVMInstallByName(String name)
Finds the VM with the given name.
|
LibraryLocation[] |
getDefaultLibraryLocations(File installLocation)
Returns a collection of
LibraryLocation s that represent the
default system libraries of this VM install type, if a VM was installed
at the given installLocation . |
String |
getId()
Returns the globally unique id of this VM type.
|
String |
getName()
Returns the display name of this VM type.
|
IVMInstall[] |
getVMInstalls()
Returns all VM instances managed by this VM type.
|
IStatus |
validateInstallLocation(File installLocation)
Validates the given location of a VM installation.
|
IVMInstall createVMInstall(String id)
id
- An id String that must be unique within this IVMInstallType.IllegalArgumentException
- If the id exists already.IVMInstall findVMInstall(String id)
id
- the VM idnull
if not foundIVMInstall findVMInstallByName(String name)
name
- the VM namenull
if not foundvoid disposeVMInstall(String id)
id
- the id of the VM to be disposed.IVMInstall[] getVMInstalls()
String getName()
String getId()
IStatus validateInstallLocation(File installLocation)
For example, an implementation might check whether the VM executable is present.
installLocation
- the root directory of a potential installation for
this type of VMFile detectInstallLocation()
null
if they
can't assure that a given vm install matches this IVMInstallType.null
if unable
to locate an installed VM.LibraryLocation[] getDefaultLibraryLocations(File installLocation)
LibraryLocation
s that represent the
default system libraries of this VM install type, if a VM was installed
at the given installLocation
.
The returned LibraryLocation
s may not exist if the
installLocation
is not a valid install location.installLocation
- home locationinstallLocation
.LibraryLocation
,
validateInstallLocation(File)
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.