Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse JDT
Release 3.5

org.eclipse.jdt.launching
Class VMStandin

java.lang.Object
  extended by 

org.eclipse.jdt.launching.AbstractVMInstall
      extended by 
org.eclipse.jdt.launching.VMStandin
All Implemented Interfaces:
IVMInstall, IVMInstall2, IVMInstall3

public class VMStandin
extends AbstractVMInstall

An implementation of IVMInstall that is used for manipulating VMs without necessarily committing changes.

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.

When convertToRealVM 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.

Since:
2.1
Restriction:
This class is not intended to be subclassed by clients.

Constructor Summary
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)
           
 
Method Summary
  IVMInstall convertToRealVM ()
          If no corresponding 'real' VM exists, create one and populate it from this standin instance.
  String getJavaVersion ()
          Returns a string representing the java.version system property of this VM install, or null if unknown.
 
Methods inherited from class org.eclipse.jdt.launching. AbstractVMInstall
abort, equals, evaluateSystemProperties, getAttribute, getAttributes, getId, getInstallLocation, getJavadocLocation, getLibraryLocations, getName, getVMArgs, getVMArguments, getVMInstallType, getVMRunner, hashCode, setAttribute, setInstallLocation, setJavadocLocation, setLibraryLocations, setName, setNotify, setVMArgs, setVMArguments
 
Methods inherited from class java.lang. Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VMStandin

public VMStandin(
IVMInstallType type,
                 
String id)

VMStandin

public VMStandin(
IVMInstall sourceVM,
                 
String id)
Constructs a copy of the specified VM with the given identifier.

Parameters:
sourceVM -
id -
Since:
3.2

VMStandin

public VMStandin(
IVMInstall realVM)
Construct a VMStandin instance based on the specified IVMInstall. Changes to this standin will not be reflected in the 'real' VM until convertToRealVM is called.

Parameters:
realVM - the 'real' VM from which to construct this standin VM
Method Detail

convertToRealVM

public 
IVMInstall convertToRealVM()
If no corresponding 'real' VM exists, create one and populate it from this standin instance. If a corresponding VM exists, update its attributes from this standin instance.

Returns:
IVMInstall the 'real' corresponding to this standin VM

getJavaVersion

public 
String getJavaVersion()
Description copied from interface: IVMInstall2
Returns a string representing the java.version system property of this VM install, or null if unknown.

Specified by:
getJavaVersion in interface IVMInstall2
Overrides:
getJavaVersion in class AbstractVMInstall
Returns:
a string representing the java.version system property of this VM install, or null if unknown.

Eclipse JDT
Release 3.5

Copyright (c) IBM Corp. and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire