public RenameLanguageDialog(Project project, Language language) throws HeadlessException { super(project, language.getModuleFqName(), "language"); myLanguage = language; myProject = project; setTitle("Rename Language"); myRegenerateLanguage .getModel() .setSelected( ModelAccess.instance() .runReadAction( new Computable<Boolean>() { @Override public Boolean compute() { return !(myLanguage.isBootstrap()); } })); }
public MPSLanguageVirtualFile(@NotNull Language language) { myLanguage = language; myPath = myLanguage.getModuleFqName(); myName = myLanguage.getModuleFqName(); }