mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 11:50:54 +07:00
PY-50536 [NPW] Made installFrameworkIfNeeded() public to re-use it in IntelliJ project generators
GitOrigin-RevId: 5a2e0dbba2c3ad0739cdbc1515d23e81121d49d2
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d7393c78f8
commit
d3b2036ae1
@@ -336,12 +336,12 @@ public abstract class PythonProjectGenerator<T extends PyNewProjectSettings> ext
|
||||
* @param forceInstallFramework pass true if you are sure required framework is missing
|
||||
* @param callback to be called after installation (or instead of is framework is installed) on AWT thread
|
||||
*/
|
||||
protected static void installFrameworkIfNeeded(@NotNull final Project project,
|
||||
@NotNull final String frameworkName,
|
||||
@NotNull final String requirement,
|
||||
@Nullable final Sdk sdk,
|
||||
final boolean forceInstallFramework,
|
||||
@Nullable final Runnable callback) {
|
||||
public static void installFrameworkIfNeeded(@NotNull final Project project,
|
||||
@NotNull final String frameworkName,
|
||||
@NotNull final String requirement,
|
||||
@Nullable final Sdk sdk,
|
||||
final boolean forceInstallFramework,
|
||||
@Nullable final Runnable callback) {
|
||||
|
||||
if (sdk == null) {
|
||||
reportPackageInstallationFailure(frameworkName, null);
|
||||
|
||||
Reference in New Issue
Block a user