Exemplo n.º 1
0
  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());
                      }
                    }));
  }
Exemplo n.º 2
0
 public MPSLanguageVirtualFile(@NotNull Language language) {
   myLanguage = language;
   myPath = myLanguage.getModuleFqName();
   myName = myLanguage.getModuleFqName();
 }