Java 类com.intellij.openapi.projectRoots.ex.PathUtilEx 实例源码

项目:intellij-ce-playground    文件:JavaParametersUtil.java   
private static Sdk createProjectJdk(final Project project) throws CantRunException {
  final Sdk jdk = PathUtilEx.getAnyJdk(project);
  if (jdk == null) {
    throw CantRunException.noJdkConfigured();
  }
  return jdk;
}
项目:intellij-ce-playground    文件:JdkPathMacro.java   
@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);
}
项目:tools-idea    文件:JavaParametersUtil.java   
private static Sdk createProjectJdk(final Project project) throws CantRunException {
  final Sdk jdk = PathUtilEx.getAnyJdk(project);
  if (jdk == null) {
    throw CantRunException.noJdkConfigured();
  }
  return jdk;
}
项目:tools-idea    文件:JavadocConfiguration.java   
protected GeneralCommandLine createCommandLine() throws ExecutionException {
  final GeneralCommandLine cmdLine = new GeneralCommandLine();
  final Sdk jdk = PathUtilEx.getAnyJdk(myProject);
  setupExeParams(jdk, cmdLine);
  setupProgramParameters(jdk, cmdLine);
  return cmdLine;
}
项目:tools-idea    文件:JdkPathMacro.java   
@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);
}
项目:consulo-java    文件:JavaParametersUtil.java   
private static Sdk createProjectJdk(final Project project) throws CantRunException
{
    final Sdk jdk = PathUtilEx.getAnyJdk(project);
    if(jdk == null)
    {
        throw CantRunException.noJdkConfigured();
    }
    return jdk;
}
项目:intellij-ce-playground    文件:JavadocGeneratorRunProfile.java   
public static Sdk getSdk(@NotNull Project project) {
  return PathUtilEx.getAnyJdk(project);
}
项目:consulo-java    文件:JavadocGeneratorRunProfile.java   
public static Sdk getSdk(@NotNull Project project)
{
    return PathUtilEx.getAnyJdk(project);
}