コード例 #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());
                      }
                    }));
  }
コード例 #2
0
 public MPSLanguageVirtualFile(@NotNull Language language) {
   myLanguage = language;
   myPath = myLanguage.getModuleFqName();
   myName = myLanguage.getModuleFqName();
 }