Examples of FindBugsPreferences


Examples of org.twodividedbyzero.idea.findbugs.preferences.FindBugsPreferences

    }
  }


  private void restoreDefaultPreferences() {
    final FindBugsPreferences bugsPreferences = getPreferences();
    bugsPreferences.setDefaults(FindBugsPreferences.createDefault(getProject(), true));
    updatePreferences();
    bugsPreferences.setModified(true);
  }
View Full Code Here

Examples of org.twodividedbyzero.idea.findbugs.preferences.FindBugsPreferences

    // toggle value
    final Content content = toolWindow.getContentManager().getContent(0);
    if (content != null) {
      final ToolWindowPanel panel = (ToolWindowPanel) content.getComponent();
      final FindBugsPreferences preferences = getPluginInterface(project).getPreferences();
      final boolean isEnabled = panel.getBugTreePanel().isScrollToSource();
      final boolean enabled = preferences.getBooleanProperty(FindBugsPreferences.TOOLWINDOW_SCROLL_TO_SOURCE, isEnabled);
      if(enabled != isEnabled) {
        panel.getBugTreePanel().setScrollToSource(enabled);
      }
      return enabled;
    }
View Full Code Here

Examples of org.twodividedbyzero.idea.findbugs.preferences.FindBugsPreferences

    // 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_SCROLL_TO_SOURCE, selected);
      panel.getBugTreePanel().setScrollToSource(selected);
    }
  }
View Full Code Here

Examples of org.twodividedbyzero.idea.findbugs.preferences.FindBugsPreferences

    if (isProjectNotLoaded(project, presentation)) {
      Messages.showWarningDialog("Project not loaded.", "FindBugs");
      return;
    }

    final FindBugsPreferences preferences = getPluginInterface(project).getPreferences();
    if (preferences.getBugCategories().containsValue("true") && preferences.getDetectors().containsValue("true")) { 
      initWorker();
    } else {
      FindBugsPluginImpl.showToolWindowNotifier(project, "No bug categories or bug pattern detectors selected. analysis aborted.", MessageType.WARNING);
      ShowSettingsUtil.getInstance().editConfigurable(project, IdeaUtilImpl.getPluginComponent(project));
    }
View Full Code Here

Examples of org.twodividedbyzero.idea.findbugs.preferences.FindBugsPreferences


  private void initWorker() {
    final com.intellij.openapi.project.Project project = IdeaUtilImpl.getProject(_dataContext);

    final FindBugsPreferences preferences = getPluginInterface(project).getPreferences();
    if (Boolean.valueOf(preferences.getProperty(FindBugsPreferences.TOOLWINDOW_TO_FRONT))) {
      IdeaUtilImpl.activateToolWindow(getPluginInterface(project).getInternalToolWindowId(), _dataContext);
    }

    final FindBugsWorker worker = new FindBugsWorker(project);
View Full Code Here

Examples of org.twodividedbyzero.idea.findbugs.preferences.FindBugsPreferences

    if (isProjectNotLoaded(project, presentation)) {
      Messages.showWarningDialog("Project not loaded.", "FindBugs");
      return;
    }

    final FindBugsPreferences preferences = getPluginInterface(project).getPreferences();
    if (preferences.getBugCategories().containsValue("true") && preferences.getDetectors().containsValue("true")) {
      initWorker();
    } else {
      FindBugsPluginImpl.showToolWindowNotifier(project, "No bug categories or bug pattern detectors selected. analysis aborted.", MessageType.WARNING);
      ShowSettingsUtil.getInstance().editConfigurable(project, IdeaUtilImpl.getPluginComponent(project));
    }
View Full Code Here

Examples of org.twodividedbyzero.idea.findbugs.preferences.FindBugsPreferences

  private void initWorker() {
    final com.intellij.openapi.project.Project project = IdeaUtilImpl.getProject(_dataContext);
    final Module module = IdeaUtilImpl.getModule(_dataContext);

    final FindBugsPreferences preferences = getPluginInterface(project).getPreferences();
    if (Boolean.valueOf(preferences.getProperty(FindBugsPreferences.TOOLWINDOW_TO_FRONT))) {
      IdeaUtilImpl.activateToolWindow(getPluginInterface(project).getInternalToolWindowId(), _dataContext);
    }

    final FindBugsWorker worker = new FindBugsWorker(project, module);
View Full Code Here

Examples of org.twodividedbyzero.idea.findbugs.preferences.FindBugsPreferences

    // 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;
    }
View Full Code Here

Examples of org.twodividedbyzero.idea.findbugs.preferences.FindBugsPreferences

    // 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

Examples of org.twodividedbyzero.idea.findbugs.preferences.FindBugsPreferences

    if (isProjectNotLoaded(project, presentation)) {
      Messages.showWarningDialog("Project not loaded.", "FindBugs");
      return;
    }

    final FindBugsPreferences preferences = getPluginInterface(project).getPreferences();
    if (preferences.getBugCategories().containsValue("true") && preferences.getDetectors().containsValue("true")) {
      super.actionPerformed(e);
    } else {
      FindBugsPluginImpl.showToolWindowNotifier(project, "No bug categories or bug pattern detectors selected. analysis aborted.", MessageType.WARNING);
      ShowSettingsUtil.getInstance().editConfigurable(project, IdeaUtilImpl.getPluginComponent(project));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.