Package org.twodividedbyzero.idea.findbugs.core

Examples of org.twodividedbyzero.idea.findbugs.core.FindBugsPlugin



  public BugReporter(final Project project, final boolean isInspectionRun, final SortedBugCollection bugCollection, final FindBugsProject findBugsProject) {
    //this.monitor = monitor;
    _project = project;
        final FindBugsPlugin pluginComponent = IdeaUtilImpl.getPluginComponent(project);
        _preferences = pluginComponent.getPreferences();
    _isInspectionRun = isInspectionRun;
    _bugCollection = bugCollection;
    _findBugsProject = findBugsProject;
  }
View Full Code Here


    final Project project = DataKeys.PROJECT.getData(e.getDataContext());
    if (project == null) {
      return;
    }

    final FindBugsPlugin findBugsPlugin = project.getComponent(FindBugsPlugin.class);
    if (findBugsPlugin == null) {
      throw new IllegalStateException("Couldn't get findbugs plugin");
    }

    final ToolWindow toolWindow = ToolWindowManager.getInstance(project).getToolWindow(getPluginInterface(project).getInternalToolWindowId());
View Full Code Here

    final Project project = DataKeys.PROJECT.getData(event.getDataContext());
    if (project == null) {
      return false;
    }

    final FindBugsPlugin findBugsPlugin = project.getComponent(FindBugsPlugin.class);
    if (findBugsPlugin == null) {
      throw new IllegalStateException("Couldn't get findbugs plugin");
    }

    final ToolWindow toolWindow = ToolWindowManager.getInstance(project).getToolWindow(getPluginInterface(project).getInternalToolWindowId());
View Full Code Here

    final Project project = DataKeys.PROJECT.getData(event.getDataContext());
    if (project == null) {
      return;
    }

    final FindBugsPlugin findBugsPlugin = project.getComponent(FindBugsPlugin.class);
    if (findBugsPlugin == null) {
      throw new IllegalStateException("Couldn't get findbugs plugin");
    }

    final ToolWindow toolWindow = ToolWindowManager.getInstance(project).getToolWindow(getPluginInterface(project).getInternalToolWindowId());
View Full Code Here

    final Project project = DataKeys.PROJECT.getData(event.getDataContext());
    if (project == null) {
      return false;
    }

    final FindBugsPlugin findBugsPlugin = project.getComponent(FindBugsPlugin.class);
    if (findBugsPlugin == null) {
      throw new IllegalStateException("Couldn't get findbugs plugin");
    }

    final ToolWindow toolWindow = ToolWindowManager.getInstance(project).getToolWindow(getPluginInterface(project).getInternalToolWindowId());
View Full Code Here

    final Project project = DataKeys.PROJECT.getData(event.getDataContext());
    if (project == null) {
      return;
    }

    final FindBugsPlugin findBugsPlugin = project.getComponent(FindBugsPlugin.class);
    if (findBugsPlugin == null) {
      throw new IllegalStateException("Couldn't get findbugs plugin");
    }

    final ToolWindow toolWindow = ToolWindowManager.getInstance(project).getToolWindow(getPluginInterface(project).getInternalToolWindowId());
View Full Code Here

    final Project project = DataKeys.PROJECT.getData(_actionEvent.getDataContext());
    if (project == null) {
      return;
    }

    final FindBugsPlugin findBugsPlugin = project.getComponent(FindBugsPlugin.class);
    if (findBugsPlugin == null) {
      throw new IllegalStateException("Couldn't get findbugs plugin");
    }

    final ToolWindow toolWindow = ToolWindowManager.getInstance(project).getToolWindow(getPluginInterface(project).getInternalToolWindowId());
View Full Code Here

  }


  @Nullable
  public LineMarkerInfo<?> getLineMarkerInfo(final PsiElement psiElement) {
    final FindBugsPlugin pluginComponent = IdeaUtilImpl.getPluginComponent(psiElement.getProject());
    if (! pluginComponent.getPreferences().isAnnotationGutterIconEnabled()) {
      return null;
    }

    if(!_isRegistered) {
      EventManagerImpl.getInstance().addEventListener(new BugReporterEventFilter(psiElement.getProject().getName()), this);
      _isRegistered = true;
    }
    if(_analysisRunning) {
      return null;
    }

    final PsiFile psiFile = IdeaUtilImpl.getPsiFile(psiElement);
    _problemCache = pluginComponent.getProblems();

    if (_problemCache.containsKey(psiFile)) {
      final List<ExtendedProblemDescriptor> matchingDescriptors = new ArrayList<ExtendedProblemDescriptor>();
      final List<ExtendedProblemDescriptor> problemDescriptors = _problemCache.get(psiFile);
      if (problemDescriptors == null) {
View Full Code Here

TOP

Related Classes of org.twodividedbyzero.idea.findbugs.core.FindBugsPlugin

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.