private static Sdk createProjectJdk(final Project project) throws CantRunException { final Sdk jdk = PathUtilEx.getAnyJdk(project); if (jdk == null) { throw CantRunException.noJdkConfigured(); } return jdk; }
@Override public String expand(DataContext dataContext) { Project project = CommonDataKeys.PROJECT.getData(dataContext); if (project == null) { return null; } final Sdk anyJdk = PathUtilEx.getAnyJdk(project); return sdkPath(anyJdk); }
protected GeneralCommandLine createCommandLine() throws ExecutionException { final GeneralCommandLine cmdLine = new GeneralCommandLine(); final Sdk jdk = PathUtilEx.getAnyJdk(myProject); setupExeParams(jdk, cmdLine); setupProgramParameters(jdk, cmdLine); return cmdLine; }
@Override public String expand(DataContext dataContext) { Project project = PlatformDataKeys.PROJECT.getData(dataContext); if (project == null) { return null; } final Sdk anyJdk = PathUtilEx.getAnyJdk(project); return sdkPath(anyJdk); }
private static Sdk createProjectJdk(final Project project) throws CantRunException { final Sdk jdk = PathUtilEx.getAnyJdk(project); if(jdk == null) { throw CantRunException.noJdkConfigured(); } return jdk; }
public static Sdk getSdk(@NotNull Project project) { return PathUtilEx.getAnyJdk(project); }