This plugin is meant to provide on the fly implementation of various design patterns.
You can download it directly from IntelliJ IDEA or from https://plugins.jetbrains.com/plugin/10856-design-patterns-plugin
- Behavioral
- Strategy
- Creational
- Builder (Inner)
- Factory
- Singleton
- Structural
Assuming you have already installed the plugin, you can use it just by right-clicking inside a .java file while your mouse is inside a code block that defines a class. This will bring up the editor menu and the first option will be Design Patterns, where you can choose which one should be implemented.
- Run
$ gradle runIde
to test the plugin locally - If you want to test on a specific IntelliJ IDEA release, you can modify the
intellij.version
property in build.gradle
- 2.0.2
- Changes (narrows down) support for IntelliJ IDEA versions since build 172.* until build 191.*
- Fixes typo with the title of the Builder
- Major code refactoring (extracted lib package for base classes in order to be moved in a separate library at some point)
- 2.0.1
- Fixes bug that was causing NullPointerException when clicking on non .java files
- Adds support for IntelliJ IDEA versions since build 145.20 until build 191.*
- Code refactoring
- 2.0.0
- Fixes bug that was causing ActionDuplicationException during IntelliJ IDEA launch
- Migrates plugin's build tool from DevKit to Gradle
- Changes Singleton DP and Builder DP to use resource templates instead of String literals
- Adds support for IntelliJ IDEA versions since build 145.20 until build 183.*
- 1.1.0
- Updates Builder DP, so that it can now handle mandatory fields (if the user wants to)
- Fixes bug in Builder DP, that would produce multiple constructors when ran again
- Fixes bug in Strategy/Factory DP, that would cause error, when running it in a class without package statement
- Fixes bug in Factory DP, that would produce multiple constructors when ran again
- Fixes bug in Factory DP, that would not always find all implementors of an interface
- 1.0.1
- Adds Factory DP
- Fixes bug with package declaration in Strategy DP
- Fixes bug with modifiers of fields and methods in Singleton DP
- 1.0.0
- Adds Builder DP
- Adds Singleton DP
- Adds Strategy DP
- Orestes Polyzos - Initial work - OrPolyzos