Java Design Patterns in the MPS Sources
This page lists three examples or less per Java design pattern ⧉ in the MPS source code. The headers link to explanations and demos for the corresponding design patterns in the Java world.
Creational Patterns¶
Abstract Factory¶ ⧉
Builder¶ ⧉
Factory Method¶ ⧉
Prototype¶ ⧉
Singleton¶ ⧉
Structural Patterns¶
Adapter¶ ⧉
Bridge¶ ⧉
Composite¶ ⧉
Decorator¶ ⧉
- ProgressMonitorDecorator ⧉
- NodeSubstituteInfoFilterDecorator.java ⧉
- ConstraintsFilteringSubstituteMenuPartDecorator.java ⧉
Facade¶ ⧉
Flyweight¶ ⧉
Proxy¶ ⧉
Behavioral Patterns¶
Chain of Responsibility¶ ⧉
Iterator¶ ⧉
Memento¶ ⧉
State¶ ⧉
Template Method¶ ⧉
Command¶ ⧉
- Save and revert changes | MPS documentation ⧉
- SubstituteEquationOperation.java ⧉
- SNodeUndoableAction.java ⧉
- RestoreVirtualFileInstance.java ⧉
Mediator¶ ⧉
Observer¶ ⧉
- Messaging Infrastructure | IntelliJ Platform Plugin SDK ⧉
- SModelListener.java ⧉
- ProjectManagerListener.java ⧉
- MPSTreeNodeListener.java ⧉
Strategy¶ ⧉
- FromModulesListProjectStrategy.java ⧉
- FromProjectPathProjectStrategy.java ⧉
- FromDirWithModulesProjectStrategy.java ⧉