Fluent Builder Generator Eclipse Plugin
The Builder Pattern was first introduced by Joshua Bloch at JavaOne 2007. It's a pattern for class creation and helps getting rid of ugly constructors, constructor telescoping and increases the general readability of your code.
This project is a Eclipse plugin that automates the writing of these builders. With just two clicks you can generate all the builder code you need.
Place plugin in dropins directory of your Eclipse.
Latest version of plugin is available via update site.
- Download the jar file
- Put the jar file in the eclipse/dropins directory
In the eclipse java editor window, right click and select Source -> Generate Builder Pattern Code (or use CTRL+SHIFT+ALT+B).
Then select which fields you want to expose in the builder.
- Fork this project
- Make your changes
- Submit a pull request
- Checkout the project
mvn eclipse:eclipseinside the fbgep/plugin directory to create the Eclipse project files
- In Eclipse, run File | Import... | General > Existing Projects into Workspace | Select root directory > The directory into which you checked out the fbgep project. Select fbgep and click Finish.
- Finally, if you haven't used Maven and Eclipse together before, setup the M2_REPO variable.