Search in sources :

Example 6 with HTMLMasonSettings

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;
}
Also used : HTMLMasonSettings(com.perl5.lang.htmlmason.idea.configuration.HTMLMasonSettings) NotNull(org.jetbrains.annotations.NotNull)

Example 7 with HTMLMasonSettings

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()));
}
Also used : HTMLMasonFileViewProviderFactory(com.perl5.lang.htmlmason.HTMLMasonFileViewProviderFactory) HTMLMasonSettings(com.perl5.lang.htmlmason.idea.configuration.HTMLMasonSettings)

Example 8 with HTMLMasonSettings

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();
}
Also used : HTMLMasonSettings(com.perl5.lang.htmlmason.idea.configuration.HTMLMasonSettings)

Example 9 with HTMLMasonSettings

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);
}
Also used : HTMLMasonSettings(com.perl5.lang.htmlmason.idea.configuration.HTMLMasonSettings)

Aggregations

HTMLMasonSettings (com.perl5.lang.htmlmason.idea.configuration.HTMLMasonSettings)9 VirtualFile (com.intellij.openapi.vfs.VirtualFile)3 NotNull (org.jetbrains.annotations.NotNull)3 Project (com.intellij.openapi.project.Project)2 GlobalSearchScope (com.intellij.psi.search.GlobalSearchScope)1 HTMLMasonFileViewProviderFactory (com.perl5.lang.htmlmason.HTMLMasonFileViewProviderFactory)1 HTMLMasonCustomTag (com.perl5.lang.htmlmason.idea.configuration.HTMLMasonCustomTag)1 HTMLMasonCompositeElement (com.perl5.lang.htmlmason.parser.psi.HTMLMasonCompositeElement)1 HTMLMasonSubcomponentDefitnition (com.perl5.lang.htmlmason.parser.psi.HTMLMasonSubcomponentDefitnition)1 HTMLMasonFileImpl (com.perl5.lang.htmlmason.parser.psi.impl.HTMLMasonFileImpl)1 VariableDescription (com.perl5.lang.mason2.idea.configuration.VariableDescription)1 PerlString (com.perl5.lang.perl.psi.PerlString)1 ArrayList (java.util.ArrayList)1 Nullable (org.jetbrains.annotations.Nullable)1