public class VMStandin extends AbstractVMInstall
Instances of this class act like wrappers. All other instances of IVMInstall represent 'real live' VMs that may be used for building or launching. Instances of this class behave like 'temporary' VMs that are not visible and not available for building or launching.
Instances of this class may be constructed as a preliminary step to creating a 'live' VM or as a preliminary step to making changes to a 'real' VM.
WhenconvertToRealVM
is called, a corresponding 'real' VM is created
if one did not previously exist, or the corresponding 'real' VM is updated.
Clients may instantiate this class.
Constructor and Description |
---|
VMStandin(IVMInstall realVM)
Construct a
VMStandin instance based on the specified IVMInstall . |
VMStandin(IVMInstall sourceVM,
String id)
Constructs a copy of the specified VM with the given identifier.
|
VMStandin(IVMInstallType type,
String id) |
Modifier and Type | Method and Description |
---|---|
IVMInstall |
convertToRealVM()
If no corresponding 'real' VM exists, create one and populate it from this stand-in instance.
|
String |
getJavaVersion()
Returns a string representing the
java.version system property
of this VM install, or null if unknown. |
abort, equals, evaluateSystemProperties, getAttribute, getAttributes, getId, getInstallLocation, getJavadocLocation, getLibraryLocations, getName, getVMArgs, getVMArguments, getVMInstallType, getVMRunner, hashCode, setAttribute, setInstallLocation, setJavadocLocation, setLibraryLocations, setName, setNotify, setVMArgs, setVMArguments
public VMStandin(IVMInstallType type, String id)
public VMStandin(IVMInstall sourceVM, String id)
sourceVM
- the original VMid
- the new ID to usepublic VMStandin(IVMInstall realVM)
VMStandin
instance based on the specified IVMInstall
.
Changes to this stand-in will not be reflected in the 'real' VM until convertToRealVM
is called.realVM
- the 'real' VM from which to construct this stand-in VMpublic IVMInstall convertToRealVM()
public String getJavaVersion()
IVMInstall2
java.version
system property
of this VM install, or null
if unknown.getJavaVersion
in interface IVMInstall2
getJavaVersion
in class AbstractVMInstall
java.version
system property
of this VM install, or null
if unknown.
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.