SDK

走着路睡觉小于 1 分钟

SDK

获取Project使用的SDK

Sdk projectSdk = ProjectRootManager.getInstance(project).getProjectSdk();

get或set Project SDK

  • 获取Project的SDK
Sdk projectSdk = ProjectRootManager.getInstance(project).getProjectSdk();
  • 获取Project的SDK名称
String projectSdkName = ProjectRootManager.getInstance(project).getProjectSdkName();
  • 设置Project的SDK
ProjectRootManager.getInstance(project).setProjectSdk(sdk);
  • 设置Project的SDK名称
ProjectRootManager.getInstance(project).setProjectSdkName(name);

可用的SDK

ProjectJdkTableopen in new window 可以用来查询和修改SDK

自定义SDK

...

上次编辑于:
贡献者: zhaojingbo
Loading...