mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
remove the old console folding API
This commit is contained in:
@@ -1,33 +0,0 @@
|
||||
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>";
|
||||
}
|
||||
}
|
||||
-17
@@ -1,17 +0,0 @@
|
||||
package com.intellij.execution.filters;
|
||||
|
||||
/**
|
||||
* @author peter
|
||||
*/
|
||||
public class ReflectionStackFrameFilter extends StackFrameFilter {
|
||||
public boolean isAuxiliaryFrame(String className, String methodName) {
|
||||
if (className.equals("java.lang.reflect.Method") && methodName.equals("invoke")) {
|
||||
return true;
|
||||
}
|
||||
if (className.equals("java.lang.reflect.Constructor") && methodName.equals("newInstance")) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return className.startsWith("sun.reflect.");
|
||||
}
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
/*
|
||||
* Copyright 2000-2010 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.intellij.execution.filters;
|
||||
|
||||
/**
|
||||
* @author Gregory.Shrago
|
||||
*/
|
||||
public class RmiStackFrameFilter extends StackFrameFilter {
|
||||
public boolean isAuxiliaryFrame(String className, String methodName) {
|
||||
if (className.startsWith("java.rmi.") && methodName.startsWith("invoke")) {
|
||||
return true;
|
||||
}
|
||||
return className.startsWith("sun.rmi.");
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package com.intellij.execution.filters;
|
||||
|
||||
import com.intellij.openapi.extensions.ExtensionPointName;
|
||||
|
||||
/**
|
||||
* @author peter
|
||||
*/
|
||||
public abstract class StackFrameFilter {
|
||||
public static final ExtensionPointName<StackFrameFilter> EP_NAME = ExtensionPointName.create("com.intellij.stackFrameFilter");
|
||||
|
||||
public abstract boolean isAuxiliaryFrame(String className, String methodName);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user