|
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.AbstractVMInstallType
Abstract implementation of a VM install type. Subclasses should implement
IVMInstall doCreateVMInstall(String id)
String getName()
IStatus validateInstallLocation(File installLocation)
* Clients implementing VM install types should subclass this class. *
Constructor Summary | |
protected |
AbstractVMInstallType()
Constructs a new VM install type. |
Method Summary | |
IVMInstall |
createVMInstall(String id)
Creates a new instance of 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. |
protected abstract IVMInstall |
doCreateVMInstall(String id)
|
IVMInstall |
findVMInstall(String id)
Finds the VM with the given id. |
IVMInstall |
findVMInstallByName(String name)
Finds the VM with the given name. |
String |
getId()
Returns the globally unique id of this VM type. |
IVMInstall[] |
getVMInstalls()
Returns all VM instances managed by this VM type. |
void |
setInitializationData(IConfigurationElement config,
String propertyName,
Object data)
Initializes the id parameter from the "id" attribute in the configuration markup. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.jdt.launching.IVMInstallType |
detectInstallLocation, getDefaultLibraryLocations, getName, validateInstallLocation |
Constructor Detail |
protected AbstractVMInstallType()
Method Detail |
public IVMInstall[] getVMInstalls()
IVMInstallType
getVMInstalls
in interface IVMInstallType
public void disposeVMInstall(String id)
IVMInstallType
disposeVMInstall
in interface IVMInstallType
id
- the id of the VM to be disposed.public IVMInstall findVMInstall(String id)
IVMInstallType
findVMInstall
in interface IVMInstallType
id
- the VM id
null
if not foundpublic IVMInstall createVMInstall(String id) throws IllegalArgumentException
IVMInstallType
createVMInstall
in interface IVMInstallType
id
- An id String that must be unique within this IVMInstallType.
IllegalArgumentException
- If the id exists already.protected abstract IVMInstall doCreateVMInstall(String id)
public void setInitializationData(IConfigurationElement config, String propertyName, Object data) throws CoreException
setInitializationData
in interface IExecutableExtension
CoreException
IExecutableExtension.setInitializationData(org.eclipse.core.runtime.IConfigurationElement, java.lang.String, java.lang.Object)
public String getId()
IVMInstallType
getId
in interface IVMInstallType
public IVMInstall findVMInstallByName(String name)
IVMInstallType
findVMInstallByName
in interface IVMInstallType
name
- the VM name
null
if not foundIVMInstallType.findVMInstallByName(String)
|
Eclipse JDT 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |