@Override public IVMInstall verifyVMInstall(ILaunchConfiguration conf) throws CoreException { IVMInstall javaInstall = super.verifyVMInstall(conf); IGrailsInstall grailsInstall = GrailsLaunchArgumentUtils.getGrailsInstall(conf); grailsInstall.verifyJavaInstall(javaInstall); return javaInstall; }
@Override public boolean preLaunchCheck(ILaunchConfiguration conf, String mode, IProgressMonitor monitor) throws CoreException { IGrailsInstall install = GrailsLaunchArgumentUtils.getGrailsInstall(conf); IStatus status = install.verify(); if (!status.isOK()) { throw new CoreException(status); } return super.preLaunchCheck(conf, mode, monitor); }