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

Examples of org.twodividedbyzero.idea.findbugs.gui.toolwindow.view.ToolWindowPanel


    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();
      panel.getBugTreePanel().getBugTree().goPreviousOccurence();
    }

  }
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.hasPreviousOccurence();
        presentation.setEnabled(toolWindow.isAvailable() && isEnabled());
        presentation.setVisible(true);
      }
    } catch (final Throwable e) {
View Full Code Here

    if (content != null) {
      final FindBugsPreferences preferences = getPluginInterface(project).getPreferences();
      final String groupByProperty = preferences.getProperty(FindBugsPreferences.TOOLWINDOW_GROUP_BY, GroupBy.BugCategory.name());

      final boolean equals = GroupBy.BugCategory.name().equals(groupByProperty);
      final ToolWindowPanel panel = (ToolWindowPanel) content.getComponent();
      final GroupBy[] sortOrderGroup = GroupBy.getSortOrderGroup(GroupBy.BugCategory);
      if(equals && !Arrays.equals(panel.getBugTreePanel().getGroupBy(), sortOrderGroup)) {
        panel.getBugTreePanel().setGroupBy(sortOrderGroup);
      }
      return equals;
    }

    return false;
View Full Code Here

    final ToolWindow toolWindow = ToolWindowManager.getInstance(project).getToolWindow(getPluginInterface(project).getInternalToolWindowId());

    // toggle value
    final Content content = toolWindow.getContentManager().getContent(0);
    if (content != null) {
      final ToolWindowPanel panel = (ToolWindowPanel) content.getComponent();
      final FindBugsPreferences preferences = getPluginInterface(project).getPreferences();
      if (selected) {
        preferences.setProperty(FindBugsPreferences.TOOLWINDOW_GROUP_BY, GroupBy.BugCategory.name());
        panel.getBugTreePanel().setGroupBy(GroupBy.getSortOrderGroup(GroupBy.BugCategory));
      }
    }
  }
View Full Code Here

    if (content != null) {
      final FindBugsPreferences preferences = getPluginInterface(project).getPreferences();
      final String groupByProperty = preferences.getProperty(FindBugsPreferences.TOOLWINDOW_GROUP_BY, GroupBy.BugCategory.name());

      final boolean equals = GroupBy.Class.name().equals(groupByProperty);
      final ToolWindowPanel panel = (ToolWindowPanel) content.getComponent();
      final GroupBy[] sortOrderGroup = GroupBy.getSortOrderGroup(GroupBy.Class);
      if(equals && !Arrays.equals(panel.getBugTreePanel().getGroupBy(), sortOrderGroup)) {
        panel.getBugTreePanel().setGroupBy(sortOrderGroup);
      }
      return equals;
    }

    return false;
View Full Code Here

    final ToolWindow toolWindow = ToolWindowManager.getInstance(project).getToolWindow(getPluginInterface(project).getInternalToolWindowId());

    // toggle value
    final Content content = toolWindow.getContentManager().getContent(0);
    if (content != null) {
      final ToolWindowPanel panel = (ToolWindowPanel) content.getComponent();
      final FindBugsPreferences preferences = getPluginInterface(project).getPreferences();
      if (selected) {
        preferences.setProperty(FindBugsPreferences.TOOLWINDOW_GROUP_BY, GroupBy.Class.name());
        panel.getBugTreePanel().setGroupBy(GroupBy.getSortOrderGroup(GroupBy.Class));
      }
    }
  }
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();
      panel.getBugTreePanel().expandTree();
    }

  }
View Full Code Here

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

      if (content != null) {
        final ToolWindowPanel panel = (ToolWindowPanel) content.getComponent();
        final JTree tree = panel.getBugTreePanel().getBugTree();
        _enabled = tree.isCollapsed(1) && tree.getRowCount() > 1;
        presentation.setEnabled(toolWindow.isAvailable() && isEnabled());
        presentation.setVisible(true);
      }
    } catch (final Throwable e) {
View Full Code Here

    if (content != null) {
      final FindBugsPreferences preferences = getPluginInterface(project).getPreferences();
      final String groupByProperty = preferences.getProperty(FindBugsPreferences.TOOLWINDOW_GROUP_BY, GroupBy.BugCategory.name());

      final boolean equals = GroupBy.Package.name().equals(groupByProperty);
      final ToolWindowPanel panel = (ToolWindowPanel) content.getComponent();
      final GroupBy[] sortOrderGroup = GroupBy.getSortOrderGroup(GroupBy.Package);
      if(equals && !Arrays.equals(panel.getBugTreePanel().getGroupBy(), sortOrderGroup)) {
        panel.getBugTreePanel().setGroupBy(sortOrderGroup);
      }
      return equals;
    }

    return false;
View Full Code Here

    final ToolWindow toolWindow = ToolWindowManager.getInstance(project).getToolWindow(getPluginInterface(project).getInternalToolWindowId());

    // toggle value
    final Content content = toolWindow.getContentManager().getContent(0);
    if (content != null) {
      final ToolWindowPanel panel = (ToolWindowPanel) content.getComponent();
      final FindBugsPreferences preferences = getPluginInterface(project).getPreferences();
      if (selected) {
        preferences.setProperty(FindBugsPreferences.TOOLWINDOW_GROUP_BY, GroupBy.Package.name());
        panel.getBugTreePanel().setGroupBy(GroupBy.getSortOrderGroup(GroupBy.Package));
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.twodividedbyzero.idea.findbugs.gui.toolwindow.view.ToolWindowPanel

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.