Search in sources :

Example 1 with BreakpointPanelProvider

use of com.intellij.xdebugger.impl.breakpoints.ui.BreakpointPanelProvider in project intellij-community by JetBrains.

the class XBreakpointUtil method collectPanelProviders.

public static List<BreakpointPanelProvider> collectPanelProviders() {
    List<BreakpointPanelProvider> panelProviders = new ArrayList<>();
    for (DebuggerSupport debuggerSupport : DebuggerSupport.getDebuggerSupports()) {
        panelProviders.add(debuggerSupport.getBreakpointPanelProvider());
    }
    panelProviders.sort((o1, o2) -> o2.getPriority() - o1.getPriority());
    return panelProviders;
}
Also used : ArrayList(java.util.ArrayList) DebuggerSupport(com.intellij.xdebugger.impl.DebuggerSupport) BreakpointPanelProvider(com.intellij.xdebugger.impl.breakpoints.ui.BreakpointPanelProvider)

Example 2 with BreakpointPanelProvider

use of com.intellij.xdebugger.impl.breakpoints.ui.BreakpointPanelProvider in project intellij-community by JetBrains.

the class BreakpointsFavoriteListProvider method updateChildren.

private void updateChildren() {
    if (myProject.isDisposed())
        return;
    myChildren.clear();
    List<BreakpointItem> items = new ArrayList<>();
    for (final BreakpointPanelProvider provider : myBreakpointPanelProviders) {
        provider.provideBreakpointItems(myProject, items);
    }
    getEnabledGroupingRules(myRulesEnabled);
    myTreeController.setGroupingRules(myRulesEnabled);
    myTreeController.rebuildTree(items);
    CheckedTreeNode root = myTreeController.getRoot();
    for (int i = 0; i < root.getChildCount(); i++) {
        TreeNode child = root.getChildAt(i);
        if (child instanceof DefaultMutableTreeNode) {
            replicate((DefaultMutableTreeNode) child, myNode, myChildren);
        }
    }
    myFavoritesManager.fireListeners(getListName(myProject));
}
Also used : DefaultMutableTreeNode(javax.swing.tree.DefaultMutableTreeNode) TreeNode(javax.swing.tree.TreeNode) AbstractTreeNode(com.intellij.ide.util.treeView.AbstractTreeNode) DefaultMutableTreeNode(javax.swing.tree.DefaultMutableTreeNode) CheckedTreeNode(com.intellij.ui.CheckedTreeNode) BreakpointItem(com.intellij.xdebugger.impl.breakpoints.ui.BreakpointItem) CheckedTreeNode(com.intellij.ui.CheckedTreeNode) BreakpointPanelProvider(com.intellij.xdebugger.impl.breakpoints.ui.BreakpointPanelProvider)

Aggregations

BreakpointPanelProvider (com.intellij.xdebugger.impl.breakpoints.ui.BreakpointPanelProvider)2 AbstractTreeNode (com.intellij.ide.util.treeView.AbstractTreeNode)1 CheckedTreeNode (com.intellij.ui.CheckedTreeNode)1 DebuggerSupport (com.intellij.xdebugger.impl.DebuggerSupport)1 BreakpointItem (com.intellij.xdebugger.impl.breakpoints.ui.BreakpointItem)1 ArrayList (java.util.ArrayList)1 DefaultMutableTreeNode (javax.swing.tree.DefaultMutableTreeNode)1 TreeNode (javax.swing.tree.TreeNode)1