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); } }
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(); } }; } }