Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Design Patterns used in Eclipse GEF [closed]

Tags:

eclipse-gef

Can anyone summarize the design patterns used in Eclipse GEF? I see that someone has done a perfect job on Eclipse platform and JDK. It would be very helpful for learning GEF if design patterns are illustrated.

For example, EditPartFactory is a typical factory pattern. GEF itself implements the MVC design.

A class hierarchy diagram is also very helpful.

Thanks so much!

like image 791
user2093941 Avatar asked Apr 21 '26 21:04

user2093941


1 Answers

A brief summary from GEF wiki.

  • Factory: Creating models from palette, creating EditParts and creating Figures
  • Observer: Typically a controller (EditPart) listening on Model and View
  • Command: To implement Undo and Redo functions
  • Strategy: EditParts can install and remove EditPolicies dynamically
  • Chain of responsibility: To decide which EditPolicy should handle a Request
like image 111
Ryan Avatar answered May 05 '26 13:05

Ryan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!