コード例 #1
0
 @Override
 public IVMInstall verifyVMInstall(ILaunchConfiguration conf) throws CoreException {
   IVMInstall javaInstall = super.verifyVMInstall(conf);
   IGrailsInstall grailsInstall = GrailsLaunchArgumentUtils.getGrailsInstall(conf);
   grailsInstall.verifyJavaInstall(javaInstall);
   return javaInstall;
 }
コード例 #2
0
 @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);
 }