Java 类com.intellij.openapi.fileTypes.SingleLazyInstanceSyntaxHighlighterFactory 实例源码

项目:RtplPlugin    文件:RtplLanguage.java   
protected RtplLanguage() {
    super(NAME);
    SyntaxHighlighterFactory.LANGUAGE_FACTORY.addExplicitExtension(this,
            new SingleLazyInstanceSyntaxHighlighterFactory() {
                @NotNull
                protected SyntaxHighlighter createHighlighter() {
                    return new RtplSyntaxHighlighter();
                }
            }
    );
}
项目:intellij-ce-playground    文件:BuildoutCfgLanguage.java   
private BuildoutCfgLanguage() {
  super("BuildoutCfg");
  SyntaxHighlighterFactory.LANGUAGE_FACTORY.addExplicitExtension(this, new SingleLazyInstanceSyntaxHighlighterFactory() {
    @NotNull
    protected SyntaxHighlighter createHighlighter() {
      return new BuildoutCfgSyntaxHighlighter();
    }
  });
}
项目:intellij-ce-playground    文件:PropertiesLanguage.java   
public PropertiesLanguage() {
  super("Properties", "text/properties");
  SyntaxHighlighterFactory.LANGUAGE_FACTORY.addExplicitExtension(this, new SingleLazyInstanceSyntaxHighlighterFactory() {
    @NotNull
    protected SyntaxHighlighter createHighlighter() {
      return new PropertiesHighlighter();
    }
  });
}
项目:idea-jflex    文件:JFlexLanguage.java   
public JFlexLanguage() {
    super(ID);

    //somehow lang.syntaxHighlighterFactory extension won't work for me
    SyntaxHighlighterFactory.LANGUAGE_FACTORY.addExplicitExtension(this, new SingleLazyInstanceSyntaxHighlighterFactory() {
        @NotNull
        protected SyntaxHighlighter createHighlighter() {
            return new JFlexSyntaxHighlighter();
        }
    });
}
项目:robot-intellij-plugin    文件:RobotLanguage.java   
private RobotLanguage() {
  super(ID);
  SyntaxHighlighterFactory.LANGUAGE_FACTORY.addExplicitExtension(this, new SingleLazyInstanceSyntaxHighlighterFactory() {
    @NotNull
    protected SyntaxHighlighter createHighlighter() {
      return new RobotSyntaxHighlighter();
    }
  });
}
项目:tools-idea    文件:PropertiesLanguage.java   
public PropertiesLanguage() {
  super("Properties", "text/properties");
  SyntaxHighlighterFactory.LANGUAGE_FACTORY.addExplicitExtension(this, new SingleLazyInstanceSyntaxHighlighterFactory() {
    @NotNull
    protected SyntaxHighlighter createHighlighter() {
      return new PropertiesHighlighter();
    }
  });
}
项目:asciidoctor-intellij-plugin    文件:AsciiDocLanguage.java   
private AsciiDocLanguage() {
  super(LANGUAGE_NAME);
  SyntaxHighlighterFactory.LANGUAGE_FACTORY.addExplicitExtension(this, new SingleLazyInstanceSyntaxHighlighterFactory() {
    @NotNull
    protected SyntaxHighlighter createHighlighter() {
      return new AsciiDocHighlighter();
    }
  });
}