com.intellij.openapi.projectRoots.JavaSdkType Java Examples

The following examples show how to use com.intellij.openapi.projectRoots.JavaSdkType. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: IntellijWithPluginClasspathHelper.java    From intellij with Apache License 2.0 5 votes vote down vote up
private static void addIntellijLibraries(JavaParameters params, Sdk ideaJdk) {
  String libPath = ideaJdk.getHomePath() + File.separator + "lib";
  PathsList list = params.getClassPath();
  for (String lib : IJ_LIBRARIES) {
    list.addFirst(libPath + File.separator + lib);
  }
  list.addFirst(((JavaSdkType) ideaJdk.getSdkType()).getToolsPath(ideaJdk));
}
 
Example #2
Source File: AsposeMavenModuleBuilder.java    From Aspose.OCR-for-Java with MIT License 4 votes vote down vote up
@Override
public boolean isSuitableSdkType(SdkTypeId sdkType) {
    return sdkType instanceof JavaSdkType;
}