Skip to content

tlcsdm/eclipse-bpep

Repository files navigation

Builder Pattern Eclipse Plugin

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.

Now Support Eclipse 2024-06 and later, Mac OS X, Linux (with nautilus) and Windows.

About

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.

Fork of the bpep plugin. Original source: https://github.com/henningjensen/bpep

Use

In the eclipse java editor window, right click and select Source -> Generate Builder Pattern Code or Ctrl + Alt + P.

screenshot

Then select which fields you want to expose in the builder.

screenshot

Build

This project uses Tycho with Maven to build. It requires Maven 3.9.0 or higher version.

Dev build:

mvn clean verify

Release build:

mvn clean org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=2.0.0 verify

Install

  1. Add https://raw.githubusercontent.com/tlcsdm/eclipse-bpep/update_site/ as the upgrade location in Eclipse.
  2. Download from Jenkins
  3. ← Drag it to your eclipse workbench to install! (I recommand Main Toolbar as Drop Target)

About

Builder Pattern Eclipse Plugin

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages