decouple PyNewDirectoryProjectDialog from Django

This commit is contained in:
Dmitry Jemerov
2012-08-08 10:57:45 +02:00
parent 86a0bb466e
commit 2bc06ba5c4
3 changed files with 19 additions and 5 deletions
+1
View File
@@ -8,6 +8,7 @@
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="python-psi-api" exported="" />
<orderEntry type="module" module-name="platform-impl" />
</component>
</module>
@@ -0,0 +1,13 @@
package com.jetbrains.python.newProject;
import com.intellij.openapi.projectRoots.Sdk;
import com.intellij.platform.DirectoryProjectGenerator;
/**
* @author yole
*/
public interface PyFrameworkProjectGenerator<T> extends DirectoryProjectGenerator<T> {
String getFrameworkTitle();
boolean isFrameworkInstalled(Sdk sdk);
}
@@ -7,7 +7,7 @@ import com.intellij.openapi.projectRoots.Sdk;
*/
public class PythonWizardSettingsHolder {
private Sdk mySdk;
private boolean myInstallDjango;
private boolean myInstallFramework;
public Sdk getSdk() {
return mySdk;
@@ -17,11 +17,11 @@ public class PythonWizardSettingsHolder {
mySdk = sdk;
}
public void setInstallDjango(final boolean installDjango) {
myInstallDjango = installDjango;
public void setInstallFramework(final boolean installFramework) {
myInstallFramework = installFramework;
}
public boolean installDjango() {
return myInstallDjango;
public boolean installFramework() {
return myInstallFramework;
}
}