package jetbrains.mps.ide.ui.dialogs.modules;
/*Generated by MPS */
import javax.swing.JCheckBox;
import java.awt.Dimension;
public class NewLanguageSettings extends AbstractModuleCreationSettings {
private final JCheckBox myRuntimeSolution;
private final JCheckBox mySandboxSolution;
public NewLanguageSettings() {
this(null);
}
public NewLanguageSettings(String projectPath) {
super(projectPath, "Language name:", "Language location:");
myRuntimeSolution = new JCheckBox("Create Runtime Solution");
this.add(myRuntimeSolution, 4, 0.0);
mySandboxSolution = new JCheckBox("Create Sandbox Solution");
this.add(mySandboxSolution, 5, 0.0);
this.setPreferredSize(new Dimension(400, 100));
reset();
}
public boolean isRuntimeSolutionNeeded() {
return myRuntimeSolution.isSelected();
}
public void setRuntimeSolutionNeeded(boolean needed) {
myRuntimeSolution.setSelected(needed);
}
public boolean isSandBoxSolutionNeeded() {
return mySandboxSolution.isSelected();
}
public void setSandboxSolutionNeeded(boolean needed) {
mySandboxSolution.setSelected(needed);
}
@Override
protected String getDefaultModuleName() {
return "NewLanguage";
}
@Override
protected String getDefaultModulePath() {
return getModuleRootPath("languages");
}
}