Search in sources :

Example 1 with AbstractFileHyperlinkFilter

use of com.intellij.execution.filters.AbstractFileHyperlinkFilter in project intellij-plugins by JetBrains.

the class KarmaTestProxyFilterProvider method getFilter.

@Nullable
@Override
public Filter getFilter(@NotNull String nodeType, @NotNull String nodeName, @Nullable String nodeArguments) {
    KarmaConfig config = myKarmaServer.getKarmaConfig();
    String baseDir = config != null ? config.getBasePath() : null;
    if ("browser".equals(nodeType)) {
        AbstractFileHyperlinkFilter browserFilter = BrowserStacktraceFilters.createFilter(nodeName, myProject, baseDir);
        if (browserFilter != null) {
            return new KarmaSourceMapStacktraceFilter(myProject, baseDir, browserFilter);
        }
    }
    if ("browserError".equals(nodeType)) {
        return getBrowserErrorFilter();
    }
    return null;
}
Also used : AbstractFileHyperlinkFilter(com.intellij.execution.filters.AbstractFileHyperlinkFilter) KarmaConfig(com.intellij.javascript.karma.KarmaConfig) KarmaSourceMapStacktraceFilter(com.intellij.javascript.karma.filter.KarmaSourceMapStacktraceFilter) Nullable(org.jetbrains.annotations.Nullable)

Aggregations

AbstractFileHyperlinkFilter (com.intellij.execution.filters.AbstractFileHyperlinkFilter)1 KarmaConfig (com.intellij.javascript.karma.KarmaConfig)1 KarmaSourceMapStacktraceFilter (com.intellij.javascript.karma.filter.KarmaSourceMapStacktraceFilter)1 Nullable (org.jetbrains.annotations.Nullable)1