Package org.twodividedbyzero.idea.findbugs.gui.tree.view

Examples of org.twodividedbyzero.idea.findbugs.gui.tree.view.BugTree


      // enable ?
      final Content content = toolWindow.getContentManager().getContent(0);

      if (content != null) {
        final ToolWindowPanel panel = (ToolWindowPanel) content.getComponent();
        final BugTree tree = panel.getBugTreePanel().getBugTree();
        _enabled = tree.hasPreviousOccurence();
        presentation.setEnabled(toolWindow.isAvailable() && isEnabled());
        presentation.setVisible(true);
      }
    } catch (final Throwable e) {
      final FindBugsPluginException processed = FindBugsPluginImpl.processError("Action update failed", e);
View Full Code Here


    if (evt.getEventType().equals(HyperlinkEvent.EventType.ACTIVATED)) {
      if (_parent != null) {
        final String desc = evt.getDescription();
        if ("#class".equals(desc)) {
          final BugTreePanel bugTreePanel = _parent.getBugTreePanel();
          final BugTree tree = bugTreePanel.getBugTree();
          if (bugTreePanel.isScrollToSource()) {
            tree.getScrollToSourceHandler().scollToSelectionSource();
          } else {
            bugTreePanel.setScrollToSource(true);
            tree.getScrollToSourceHandler().scollToSelectionSource();
            bugTreePanel.setScrollToSource(false);
          }
        } else if ("#comments".equals(desc)) {
          getTabbedPane().setSelectedComponent(getCloudCommentsPanel());
        }
View Full Code Here

    _visibleRootNode = new RootNode(_project.getName());
    _treeModel = new GroupTreeModel(_visibleRootNode, _groupBy, _project);

    //noinspection ThisEscapedInObjectConstruction
    _bugTree = new BugTree(_treeModel, this, _project);

    final JScrollPane treeScrollPane = ScrollPaneFacade.createScrollPane();
    treeScrollPane.setViewportView(_bugTree);
    add(treeScrollPane, BorderLayout.CENTER);
  }
View Full Code Here

    final ToolWindow toolWindow = ToolWindowManager.getInstance(project).getToolWindow(getPluginInterface(project).getInternalToolWindowId());
    final Content content = toolWindow.getContentManager().getContent(0);
    if (content != null) {
      final ToolWindowPanel panel = (ToolWindowPanel) content.getComponent();
      final BugTree tree = panel.getBugTreePanel().getBugTree();
      tree.setSelectionRow(0);
      tree.requestFocusInWindow();
      tree.dispatchEvent(new KeyEvent(tree, KeyEvent.KEY_PRESSED, System.currentTimeMillis(), KeyEvent.CTRL_DOWN_MASK, KeyEvent.VK_F, 'F'));
    }

  }
View Full Code Here

      // enable ?
      final Content content = toolWindow.getContentManager().getContent(0);

      if (content != null) {
        final ToolWindowPanel panel = (ToolWindowPanel) content.getComponent();
        final BugTree tree = panel.getBugTreePanel().getBugTree();
        _enabled = tree.hasNextOccurence();
        presentation.setEnabled(toolWindow.isAvailable() && isEnabled());
        presentation.setVisible(true);
      }
    } catch (final Throwable e) {
      final FindBugsPluginException processed = FindBugsPluginImpl.processError("Action update failed", e);
View Full Code Here

TOP

Related Classes of org.twodividedbyzero.idea.findbugs.gui.tree.view.BugTree

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.