Eclipse continues to be one of the most popular developer IDEs, and with plugins its capability is extended further. Little tools can be added to your copy of Eclipse to extend its capabilities and customize it to suit your particular development needs. Also it makes our development easier and saves time.
Here are few useful eclipse plugins for java developers:
It is a free Java code coverage tool for Eclipse, available under the Eclipse Public License. It brings code coverage analysis directly into the Eclipse workbench:
- Fast develop/test cycle: Launches from within the workbench like JUnit test runs can directly be analyzed for code coverage.
- Rich coverage analysis: Coverage results are immediately summarized and highlighted in the Java source code editors.
- Non-invasive: EclEmma does not require modifying your projects or performing any other setup.
Check here for installation and more details
It is a defect detection tool for Java that uses static analysis to look for more than 200 bug patterns, such as null pointer dereferences, infinite recursive loops, bad uses of the Java libraries and deadlocks. FindBugs can identify hundreds of serious defects in large applications (typically about 1 defect per 1000-2000 lines of non-commenting source statements).
FindBugs is open source (LGPL), has been downloaded more than 500,000 times and is used by many major companies and financial institutions. FindBugs Eclipse Plugin integrates FindBugs seamlessly with the most popular Java IDE and allows to run FindBugs analysis incrementally on changed files or on demand per project. More details here
The Eclipse Checkstyle Plugin (aka eclipse-cs) integrates the static source code analyzer Checkstyle into the Eclipse IDE. Checkstyle is a Open Source development tool to help you ensure that your Java code adheres to a set of coding standards. Checkstyle does this by inspecting your Java source code and pointing out items that deviate from a defined set of coding rules.
With the Checkstyle Eclipse Plugin your code is constantly inspected for coding standard deviations. Within the Eclipse workbench you are immediately notified of problems via the Eclipse Problems View and source code annotations similar to compiler errors or warnings. This ensures an extremely short feedback loop right at the developers fingertips. For more info – https://marketplace.eclipse.org/content/checkstyle-plug
PMD is a source code analyzer which helps to detect used variables and bad codes. Everytime you save your work, eclipse-pmd scans your source code and looks for potential problems like possible bugs and suboptimal, duplicate, dead or overly complicated code.
Where possible, eclipse-pmd offers quick fixes that automatically fix the problems. These quick fixes can be used to fix a single problem or all occurrences in your entire code base.
– See more at: https://marketplace.eclipse.org/content/eclipse-pmd#sthash.BjFIJkbg.dpuf
EGit is an Eclipse Team provider for the Git version control system. Git is a distributed SCM, which means every developer has a full copy of all history of every revision of the code, making queries against the history very fast and versatile. EGit is your best bet for managing the repositories and triggering clones. The tool uses the JGit library, Java implementation of Git that can be downloaded separately.
Egit wiki – http://wiki.eclipse.org/EGit/User_Guide.
Egit download – http://www.eclipse.org/egit/download/
Learn more – http://www.sonarlint.org/eclipse/
Download – https://marketplace.eclipse.org/content/sonarlint
M2Eclipse provides tight integration for Apache Maven into the IDE with the following features:
- Launching Maven builds from within Eclipse
- Dependency management for Eclipse build path based on Maven’s pom.xml
- Resolving Maven dependencies from the Eclipse workspace without installing to local Maven repository
- Automatic downloading of the required dependencies from the remote Maven repositories
- Wizards for creating new Maven projects, pom.xml and to enable Maven support on plain Java project
- Quick search for dependencies in Maven remote repositories
- The Maven pom editor which provides code assist inside pom.xml
You can install the lastest M2Eclipse release by using the following update site from within Eclipse:
- Spring IDE
Spring IDE is a set of plugins which are adding support for the popular application framework Spring Framework to the Eclipse platform.Features:
- Project nature which adds support of Spring projects
- Incremental builders validating Spring bean config files
- Image decorator which decorates all Spring projects, their config files and all Java classes which are used by these config files
- View which displays all Spring projects and their Spring-related artifacts
- Textual and graphical editors for Spring configuration files
- Extension of Eclipse’s search facility to search for Spring artifacts
- Support for refactorings of Spring config files
- Wizards for creating new Spring projects and config files
- Support for Spring 2.0 name spaces
- Support for Spring AOP
- Support for Spring Web Flow
- Support for Spring JavaConfig
See more at: https://marketplace.eclipse.org/content/spring-ide
- Eclipse Metrics Plugin
This Eclipse plugin calculates various metrics for your code during build cycles and warns you, via the Problems view, of ‘range violations’ for each metric. This allows you to stay continuously aware of the health of your code base. You may also export the metrics to HTML for public display or to CSV or XML format for further analysis. This export can be performed from within Eclipse or using an Ant task.
Note that although metrics can be useful in a software development effort, they should not take the place of good taste and experience. Also, metrics are more useful as indicators of unhealthy code than they are as indicators of healthy code, i.e. a codebase with many range violation warnings is probably an indication that the code needs to be refactored but no range violation warnings does not necessarily mean that the code is good.
More info – http://eclipse-metrics.sourceforge.net/
Download – https://marketplace.eclipse.org/content/eclipse-metrics
JAutodoc is an Eclipse Plugin for automatically adding Javadoc and file headers to your source code. It optionally generates initial comments from element name by using Velocity templates for Javadoc and file headers. It helps to increase the public documentation. The main features are
- Complete, keep or replace existing Javadoc
- Create initial comments from element name
- Getter/Setter comments from related field comment
- Add/Replace file headers
- Velocity templates for Javadoc and headers
- Ant Task for Eclipse
- Support for Package Javadoc
- Search for missing Javadoc and file headers
Latest posts by Uday (see all)
- How to run shell commands using SSH connection in Java - July 26, 2017
- Java program to print rectangle of stars - July 20, 2017
- Introduction to Java Enum data type with example programs - March 31, 2017