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

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


    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();
      //return panel.isPreviewEnabled();
      final FindBugsPreferences preferences = getPluginInterface(project).getPreferences();
      final boolean enabled = preferences.getBooleanProperty(FindBugsPreferences.TOOLWINDOW_EDITOR_PREVIEW, panel.isPreviewEnabled());
      if(enabled != panel.isPreviewEnabled()) {
        panel.setPreviewEnabled(enabled);
      }
      return enabled;
    }

    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();
      preferences.setProperty(FindBugsPreferences.TOOLWINDOW_EDITOR_PREVIEW, selected);
      panel.setPreviewEnabled(selected);
    }
  }
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

  }


  @Nullable
  private Project getCurrentFbProject() {
    final ToolWindowPanel panel = _parent.getFindBugsPlugin().getToolWindowPanel();
    if (panel == null) {
      return null;
    }
    final BugCollection bugCollection = panel.getBugCollection();
    if (bugCollection == null) {
      return null;
    }
    return bugCollection.getProject();
  }
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().getBugTree().goNextOccurence();
    }

  }
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) {
View Full Code Here

TOP

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

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.