Search in sources :

Example 1 with PropertiesComponentStub

use of com.dmarcotte.handlebars.config.PropertiesComponentStub in project idea-handlebars by dmarcotte.

the class HbParserTest method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    final MutablePicoContainer appContainer = getApplication().getPicoContainer();
    appContainer.registerComponentInstance(PropertiesComponent.class.getName(), new PropertiesComponentStub());
    appContainer.registerComponentInstance(TemplateDataLanguageMappings.class.getName(), new TemplateDataLanguageMappings(getProject()));
    appContainer.registerComponentInstance(TemplateDataLanguagePatterns.class.getName(), new TemplateDataLanguagePatterns());
    addExplicitExtension(LanguageParserDefinitions.INSTANCE, HbLanguage.INSTANCE, new HbParseDefinition());
}
Also used : MutablePicoContainer(org.picocontainer.MutablePicoContainer) TemplateDataLanguagePatterns(com.intellij.psi.templateLanguages.TemplateDataLanguagePatterns) PropertiesComponentStub(com.dmarcotte.handlebars.config.PropertiesComponentStub) PropertiesComponent(com.intellij.ide.util.PropertiesComponent) TemplateDataLanguageMappings(com.intellij.psi.templateLanguages.TemplateDataLanguageMappings)

Aggregations

PropertiesComponentStub (com.dmarcotte.handlebars.config.PropertiesComponentStub)1 PropertiesComponent (com.intellij.ide.util.PropertiesComponent)1 TemplateDataLanguageMappings (com.intellij.psi.templateLanguages.TemplateDataLanguageMappings)1 TemplateDataLanguagePatterns (com.intellij.psi.templateLanguages.TemplateDataLanguagePatterns)1 MutablePicoContainer (org.picocontainer.MutablePicoContainer)1