mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
sort out dependencies to make sure openapi doesn't depend on any impl modules
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
package com.intellij.execution.filters;
|
||||
|
||||
import com.intellij.execution.ConsoleFolding;
|
||||
import com.intellij.openapi.util.TextRange;
|
||||
import com.intellij.openapi.util.Trinity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author peter
|
||||
*/
|
||||
public class AuxiliaryCallsFolding extends ConsoleFolding {
|
||||
@Override
|
||||
public boolean shouldFoldLine(String line) {
|
||||
final Trinity<String, String, TextRange> pair = ExceptionFilter.parseExceptionLine(line);
|
||||
return pair != null && shouldFold(pair.first, pair.second);
|
||||
}
|
||||
|
||||
private static boolean shouldFold(String className, String methodName) {
|
||||
for (StackFrameFilter provider : StackFrameFilter.EP_NAME.getExtensions()) {
|
||||
if (provider.isAuxiliaryFrame(className, methodName)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String getPlaceholderText(List<String> lines) {
|
||||
return " <" + lines.size() + " internal calls>";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user