Model-View-Controller
Eclipse MVC
Mátyás Zoltán – szoftverfejlesztő
2016.10.11.
Model-View-Controller
• Mi is pontosan az MVC?
Java MVC
• Swing
• Spring
• Struts
• Eclipse MVC
Eclipse MVC
• Graphical Editing Framework
 Interaction Layer
 Model-to-View mapping
 Workbench Integration
 Rendering
 Layout
 Scaling
 Native (SWT) Layer
Model
• EMF
– UML model
– OCL checks
– Automatikus JAVA kód generálás
View
Controller
Model EditParts Figures
@#!
EditPart
Factory
GraphicalViewer
Eseménykezelés
SWT Events
Tool
Requests
EditPart
Commands
EditPart EditPolicyEditPolicyEditPolicy
Requests
Commands
Stack
Commands
?
Editor készitése
Step 1:
Model
Step 2:
View
Step 3:
Controller
Step 4:
“Editor”
Edit Policies
Property
Sheet
Palette and
Tools
Add Editing
Behavior
Összefoglalás
Model
6. modifies
EditPartViewer
Palette
Tool1
Tool2
Tool3
Active
Tool
1. acts on
2. events
5. execute
3. request 4. command
CommandStack
Command
Command
Command
Command
EditPartViewer
EditPartViewer
EditDomain
Eclipse MVC

Eclipse MVC