Package org.eclipse.jdt.launching
Interface IVMInstall2
-
- All Known Implementing Classes:
AbstractVMInstall,VMStandin
public interface IVMInstall2Optional extensions that may be implemented by anIVMInstall.When an
IVMInstallimplements this interface, clients must callgetVMArgs()in place ofgetVMArguments()andsetVMArgs(String)in place ofsetVMArguments(String[]). This avoids the problem noted in bug 73493.Additionally, this interface optionally provides the Java version associated with a VM install.
Clients that implement
IVMInstallmay additionally implement this interface. However, it is strongly recommended that clients subclassAbstractVMInstallinstead, which already implements this interface, and will insulate clients from additional API additions in the future.- Since:
- 3.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetJavaVersion()Returns a string representing thejava.versionsystem property of this VM install, ornullif unknown.StringgetVMArgs()Returns VM arguments to be used with this vm install whenever this VM is launched as a raw string, ornullif none.voidsetVMArgs(String vmArgs)Sets VM arguments to be used with this vm install whenever this VM is launched as a raw string, possiblynull.
-
-
-
Method Detail
-
getVMArgs
String getVMArgs()
Returns VM arguments to be used with this vm install whenever this VM is launched as a raw string, ornullif none.- Returns:
- VM arguments to be used with this vm install whenever this
VM is launched as a raw string, or
nullif none
-
setVMArgs
void setVMArgs(String vmArgs)
Sets VM arguments to be used with this vm install whenever this VM is launched as a raw string, possiblynull.- Parameters:
vmArgs- VM arguments to be used with this vm install whenever this VM is launched as a raw string, possiblynull
-
getJavaVersion
String getJavaVersion()
Returns a string representing thejava.versionsystem property of this VM install, ornullif unknown.- Returns:
- a string representing the
java.versionsystem property of this VM install, ornullif unknown.
-
-