コード例 #1
0
 private static void updateSdk(@NotNull Project project, @NotNull final Sdk sdk)
     throws InvalidSdkException {
   PySkeletonRefresher.refreshSkeletonsOfSdk(
       project, sdk); // NOTE: whole thing would need a rename
   if (!PySdkUtil.isRemote(sdk)) {
     updateSysPath(sdk);
   }
 }
コード例 #2
0
 private PythonPathEditor createPathEditor(final Sdk sdk) {
   if (PySdkUtil.isRemote(sdk)) {
     return new PyRemotePathEditor(sdk);
   } else {
     return new PythonPathEditor(
         "Classes",
         OrderRootType.CLASSES,
         FileChooserDescriptorFactory.createAllButJarContentsDescriptor()) {
       @Override
       protected void onReloadButtonClicked() {
         reloadSdk();
       }
     };
   }
 }