How to integrate and use Software Quality Environment (SQE) plug-in for NetBeans IDE 6.0
Software Quality Environment is a project that provides NetBeans integration for software quality tools. Currently, the project includes:
- FindBugs, The tutorial on how to integrate the FindBugs plug-in for NetBeans 5.5 / 5.5.1 you can find here.
- PMD
- CheckStyle
- Dependency Finder
Note: The SQE plug-in for NetBeans IDE 6.0 is still under development likewise is NetBeans IDE 6.0. Therefore, there may be some stability issues or some functionality which may not be fully implemented. If any are discovered, please file an issue or bug at the SQE Project Issue Tracker.
This tutorial takes you through installing SQE plug-in in the NetBeans IDE 6.0 and shows you the basics of using its tools.Expected duration: 20 minutes
Prerequisites
This tutorial assumes you have some basic knowledge of, or programming experience with the NetBeans IDE.
Software Needed for the Tutorial
Before you begin, you need to install the following software on your computer:
- NetBeans IDE 6.0 Beta 1 or later (download).
Notations Used in the Tutorial
- <NETBEANS_HOME> - the NetBeans IDE installation directory.
Tutorial Exercises
Setup SQE for NetBeans 6
Potential Issues
Scanning a project that contains substantial amount of classes might result in OutOfMemoryError exception. If this is the case, follow the steps below:
Installing SQE for NetBeans IDE 6.0
First of all, in order to get the SQE plug-in it is necessary to specify where it can be downloaded from i.e. the update center. There are two ways to configure the update center:- Manual: in settings, you type where the update center located is and then download it as well as the SQE plug-in itself,
- Automatic: You download and install the SQE update center module and then obtain the SQE plug-in that SQE update center made available for you.
Installing SQE : Manually
- SQE Java,
- SQE Platform,
- SQE Update Center.
Installing SQE : Automatically
- Download the SQE Update Center module (the one in charge of downloading and updating the SQE plug-in).You can get it from here.
- SQE Java,
- SQE Platform.
Tip: type "sqe" in the search field to quickly locate these modules.
Basics of SQE
Where to Find SQE in NetBeans
There are two ways to access the SQE tools:
Where to Find SQE Results
The output after running SQE tools is printed in the "SQE Result" window. Inside, you can specify for which quality tool you want to see the results (provider combo box). Then, in the area "Result" bugs and underneath its locations in classes are listed. On the right side of the window, you can see bugs explanation and suggestions for improvements. On the left side of the window, you can find refresh options as well as display preferences.
SQE Statistics
Besides the "SQE Result" window, there are two additional windows provided by the SQE plug-in. It is:
Configuration of SQE Tools
Quality tools that SQE consist of may be configured (bug patterns, bug detectors). In order to do that:
Task List Integration
SQE is also integrated into the "Task List" window.
Your project is now being scanned using SQE tools. The result will be displayed along with TODOs, warnings, etc. in the "Task List" window.
Using SQE
Important Notice: make sure your code has been newly compiled because FindBugs analysis is conducted on bytecode.
or
Depending on your choice, now the SQE tools or tool are scanning your code. When it is finished, we can analyze the report.



