public static boolean hasFindBugsNature ( IProject project ) { try { return ProjectUtilities . isJavaProject ( project ) && project . hasNature ( FindbugsPlugin . NATURE_ID ) ; } catch ( CoreException e ) { FindbugsPlugin . getDefault ( ) . logException ( e , "Error while testing SpotBugs nature for project " + project ) ; } return false ; }
Using the natures name check whether the current project has FindBugs nature .