use of com.perl5.lang.htmlmason.idea.configuration.HTMLMasonSettings in project Perl5-IDEA by Camelcade.
the class HTMLMasonFileImpl method getImplicitVariables.
@NotNull
@Override
public List<PerlVariableDeclarationElement> getImplicitVariables() {
HTMLMasonSettings settings = HTMLMasonSettings.getInstance(getProject());
if (myImplicitVariables == null || myMasonChangeCounter != settings.getChangeCounter()) {
myImplicitVariables = buildImplicitVariables(settings);
myMasonChangeCounter = settings.getChangeCounter();
}
return myImplicitVariables;
}
use of com.perl5.lang.htmlmason.idea.configuration.HTMLMasonSettings in project Perl5-IDEA by Camelcade.
the class HTMLMasonParserTest method setUp.
@Override
public void setUp() throws Exception {
super.setUp();
LanguageFileViewProviders.INSTANCE.addExplicitExtension(HTMLMasonLanguage.INSTANCE, new HTMLMasonFileViewProviderFactory());
getProject().registerService(HTMLMasonSettings.class, new HTMLMasonSettings(getProject()));
}
use of com.perl5.lang.htmlmason.idea.configuration.HTMLMasonSettings in project Perl5-IDEA by Camelcade.
the class HTMLMasonProjectComponent method projectOpened.
@Override
public void projectOpened() {
HTMLMasonSettings settings = HTMLMasonSettings.getInstance(myProject);
settings.prepareLexerConfiguration();
}
use of com.perl5.lang.htmlmason.idea.configuration.HTMLMasonSettings in project Perl5-IDEA by Camelcade.
the class HTMLMasonTypedHandler method getCloseTag.
protected String getCloseTag(Project project, String openTag) {
HTMLMasonSettings settings = HTMLMasonSettings.getInstance(project);
Map<String, String> openCloseMap = settings.getOpenCloseMap();
return openCloseMap.get(openTag);
}
Aggregations