Search in sources :

Example 6 with InstanceFilter

use of com.intellij.debugger.InstanceFilter in project kotlin by JetBrains.

the class KotlinBreakpointFiltersPanel method updateInstanceFilterEditor.

private void updateInstanceFilterEditor(boolean updateText) {
    List<String> filters = new ArrayList<String>();
    for (InstanceFilter instanceFilter : myInstanceFilters) {
        if (instanceFilter.isEnabled()) {
            filters.add(Long.toString(instanceFilter.getId()));
        }
    }
    if (updateText) {
        myInstanceFiltersField.setText(StringUtil.join(filters, " "));
    }
    String tipText = concatWithEx(filters, " ", (int) Math.sqrt(myInstanceFilters.length) + 1, "\n");
    myInstanceFiltersField.getTextField().setToolTipText(tipText);
}
Also used : InstanceFilter(com.intellij.debugger.InstanceFilter) ArrayList(java.util.ArrayList)

Aggregations

InstanceFilter (com.intellij.debugger.InstanceFilter)6 ArrayList (java.util.ArrayList)5 XBreakpoint (com.intellij.xdebugger.breakpoints.XBreakpoint)2 DebuggerManagerEx (com.intellij.debugger.DebuggerManagerEx)1 SourcePosition (com.intellij.debugger.SourcePosition)1 TextWithImportsImpl (com.intellij.debugger.engine.evaluation.TextWithImportsImpl)1 Breakpoint (com.intellij.debugger.ui.breakpoints.Breakpoint)1 BreakpointManager (com.intellij.debugger.ui.breakpoints.BreakpointManager)1 FieldBreakpoint (com.intellij.debugger.ui.breakpoints.FieldBreakpoint)1 DebuggerTreeNodeImpl (com.intellij.debugger.ui.impl.watch.DebuggerTreeNodeImpl)1 FieldDescriptorImpl (com.intellij.debugger.ui.impl.watch.FieldDescriptorImpl)1 Document (com.intellij.openapi.editor.Document)1 Editor (com.intellij.openapi.editor.Editor)1 Project (com.intellij.openapi.project.Project)1 ClassFilter (com.intellij.ui.classFilter.ClassFilter)1 ObjectReference (com.sun.jdi.ObjectReference)1