while (deletedIterator.hasNext()) { VMStandin deletedVMStandin = (VMStandin) deletedIterator.next(); deletedVMStandin.getVMInstallType().disposeVMInstall(deletedVMStandin.getId());
while (deletedIterator.hasNext()) { VMStandin deletedVMStandin = (VMStandin) deletedIterator.next(); deletedVMStandin.getVMInstallType().disposeVMInstall(deletedVMStandin.getId());
/** * Return the default VM set with <code>setDefaultVM()</code>. * @return Returns the default VM. May return <code>null</code> when no default * VM was set or when the default VM has been disposed. */ public static IVMInstall getDefaultVMInstall() { IVMInstall install= getVMFromCompositeId(getDefaultVMId()); if (install != null) { File location = install.getInstallLocation(); if (location != null) { if (location.exists()) { return install; } } } // if the default JRE goes missing, re-detect if (install != null) { install.getVMInstallType().disposeVMInstall(install.getId()); } synchronized (fgVMLock) { fgDefaultVMId = null; fgVMTypes = null; initializeVMs(); } return getVMFromCompositeId(getDefaultVMId()); }
install.getVMInstallType().disposeVMInstall(install.getId());