https://github.com/orpolyzos/design-patterns-plugin
Design Patterns - Plugin for IntelliJ IDEA that provides on the fly implementation of various design patterns
https://github.com/orpolyzos/design-patterns-plugin
design-patterns intellij java jetbrains plugin
Last synced: 9 months ago
JSON representation
Design Patterns - Plugin for IntelliJ IDEA that provides on the fly implementation of various design patterns
- Host: GitHub
- URL: https://github.com/orpolyzos/design-patterns-plugin
- Owner: OrPolyzos
- License: mit
- Created: 2018-06-23T09:05:45.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-01-04T16:09:54.000Z (about 6 years ago)
- Last Synced: 2025-05-05T23:16:25.842Z (9 months ago)
- Topics: design-patterns, intellij, java, jetbrains, plugin
- Language: Java
- Homepage: https://plugins.jetbrains.com/plugin/10856-design-patterns-intellij-idea-plugin
- Size: 456 KB
- Stars: 46
- Watchers: 4
- Forks: 15
- Open Issues: 7
-
Metadata Files:
- Readme: readme.md
- Contributing: contributing.md
Awesome Lists containing this project
README
# Design Patterns _(Plugin for IntelliJ IDEA)_
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
## Currently supported design patterns
* __Behavioral__
* Strategy
* __Creational__
* Builder (Inner)
* Factory
* Singleton
* __Structural__
## How to use
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.


## Getting started
* 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
## Release History
* 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
## Authors
* **Orestes Polyzos** - *Initial work* - [OrPolyzos](https://github.com/OrPolyzos)