|
Eclipse JDT 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.jdt.launching.AbstractVMInstall
Abstract implementation of a VM install. *
* Clients implenmenting VM installs should subclass this class. *
Constructor Summary | |
AbstractVMInstall(IVMInstallType type,
String id)
Constructs a new VM install. |
Method Summary | |
String |
getId()
Returns the id for this VM. |
File |
getInstallLocation()
Returns the root directory of the install location of this VM. |
URL |
getJavadocLocation()
Returns the Javadoc location associated with this VM install. |
LibraryLocation[] |
getLibraryLocations()
Returns the library locations of this IVMInstall. |
String |
getName()
Returns the display name of this VM. |
IVMInstallType |
getVMInstallType()
Returns the VM type of this VM. |
IVMRunner |
getVMRunner(String mode)
Returns a VM runner that runs this installed VM in the given mode. |
void |
setInstallLocation(File installLocation)
Sets the root directory of the install location of this VM. |
void |
setJavadocLocation(URL url)
Sets the Javadoc location associated with this VM install. |
void |
setLibraryLocations(LibraryLocation[] locations)
Sets the library locations of this IVMInstall. |
void |
setName(String name)
Sets the display name of this VM. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractVMInstall(IVMInstallType type, String id)
type
- The type of this VM install.
Must not be null
id
- The unique identifier of this VM instance
Must not be null
.
IllegalArgumentException
- if any of the required
parameters are null
.Method Detail |
public String getId()
IVMInstall
getId
in interface IVMInstall
null
.public String getName()
IVMInstall
getName
in interface IVMInstall
null
.public void setName(String name)
IVMInstall
setName
in interface IVMInstall
name
- the display name of this VMpublic File getInstallLocation()
IVMInstall
getInstallLocation
in interface IVMInstall
null
.public void setInstallLocation(File installLocation)
IVMInstall
setInstallLocation
in interface IVMInstall
installLocation
- the root directory of this VM installationpublic IVMInstallType getVMInstallType()
IVMInstall
getVMInstallType
in interface IVMInstall
public IVMRunner getVMRunner(String mode)
IVMInstall
getVMRunner
in interface IVMInstall
mode
- the mode the VM should be launched in; one of the constants
declared in org.eclipse.debug.core.ILaunchManager
null
if the given mode
is not supported by this VM.ILaunchManager
public LibraryLocation[] getLibraryLocations()
IVMInstall
JavaRuntime.getLibraryLocations(IVMInstall)
to determine the libraries associated with this VM install.
getLibraryLocations
in interface IVMInstall
null
to indicate that this VM install uses
the default library locations associated with this VM's install type.IVMInstall.getLibraryLocations()
public void setLibraryLocations(LibraryLocation[] locations)
IVMInstall
setLibraryLocations
in interface IVMInstall
locations
- The LibraryLocation
s to associate
with this IVMInstall.
May be null
to indicate that this VM install uses
the default library locations associated with this VM's install type.IVMInstall.setLibraryLocations(LibraryLocation[])
public URL getJavadocLocation()
IVMInstall
getJavadocLocation
in interface IVMInstall
null
if noneIVMInstall.getJavadocLocation()
public void setJavadocLocation(URL url)
IVMInstall
setJavadocLocation
in interface IVMInstall
url
- a url pointing to the Javadoc location associated with
this VM installIVMInstall.setJavadocLocation(URL)
|
Eclipse JDT 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |