SlideServe
Menu
Préférences
© SlideServe · v2026

Introduction to the Graphical Modeling Framework

harlan-paul avatar
25 diapositives · 388 Views · Nov 17, 2014

The Eclipse Graphical Modeling Framework (GMF) offers a powerful infrastructure for developing graphical editors based on EMF and GEF. This comprehensive guide covers the key aspects of GMF, including its architecture, generative components, and extensibility features. Learn how to build your own diagram editor with GMF through live demonstrations, hands-on sessions, and detailed explanations of the development process. Discover how GMF can significantly reduce the cost of domain-specific language (DSL) tooling while providing a robust platform for graphical representations.

Introduction to the Graphical Modeling Framework - slide 1
01 / 25Introduction to the Graphical Modeling Framework
1 / 17

Télécharger la présentation

Introduction to the Graphical Modeling Framework
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. Introduction to the Graphical Modeling Framework Artem Tikhomirov, Borland Alexander Shatalin, Borland

  2. GMF Overview • “The Eclipse Graphical Modeling Framework (GMF) provides a generative component and runtime infrastructure for developing graphical editors based on EMF and GEF.” • Significantly reduces cost of DSL tooling • GMF is part of Eclipse Modeling Project • GMF-generated solutions proved by: • .ecore diagram editor • .gmfgraph bootstrapping editor • UML2 Tools project diagram editors • Borland Together DSL toolkit

  3. Agenda • Define requirements for diagram editor • Building diagram editor with GMF, basic steps • Live demo • Hands on – try building your version of GMF diagram • GMF architecture • Q&A session • Generated diagram extensibility • Additions

  4. Define requirements for diagram editor Router SubNet Workstation

  5. Building diagram editor with GMF, basic steps • Design EMF domain meta-model • Create graphical representations for diagram nodes/links • Define diagram structure and generate code ?

  6. EMF domain meta-model

  7. Graphical elements • SVG picture • Draw2d “matryoshka” • Composite SVG figure

  8. M2T ? Domain model M2M Graphical shapes Define diagram structure and generate code Java code

  9. Live demo

  10. Hands on/Q&A session Try building your version of GMF diagram

  11. Transformation Templates Domain Model (ECore) Generator Model (GMFGen) Java code Mapping (GMFMap) Platform Graphical Definition (GMFGraph) GMF Runtime Tool Definition (GMFTool) GMF architecture: GMF Tooling • Set of models to define diagram editor - capturing graphical, tooling and meta-modeling aspects. • Extensible code generator, capable to customize generated code to match specific requirements

  12. Models: Domain. What is meta-model? A dog sits in a car. A girl reads a green book. … UML EMF XSD … Java API Instance level Meta-level

  13. Figures Shapes Models: Graphical Definition

  14. Diagram Elements Models: Graphical Definition

  15. Models: Tooling • Palette tools • Context menu actions • Property sheet

  16. Domain model Tool Definition Graphical Definition Mapping model Models: Mapping

  17. M2T M2M Models: Generation

  18. GMF architecture: Runtime component A set of plug-ins simplifying development of EMF-based diagram editor, with an execution time extensibility • Reusable components for graphical editors • Standardized model to describe visual properties of diagram elements • Set of Services extensible via declared extension-points at execution time • Command infrastructure that bridges EMF and GEF

  19. Domain Model (ECore) Generator Model (GMFGen) Java code Mapping (GMFMap) Platform Graphical Definition (GMFGraph) GMF Runtime Tool Definition (GMFTool) Variation points Transformation Templates Extension points Code Models

  20. Additions

  21. Runtime - Lite • Lightweight alternative to Full Runtime • Notation Model to represent diagram • Experimental option • Targets pure GEF • Easy to understand • nothing but EMF and GEF

  22. Notation Model

  23. Visual model: Styled text representation A dog sits in a car. A dog sits in a car. <sentenceRepresentation sentence="s.xmi#//@sentence"> <wordRepresentations word="s.xmi#//@sentence/@words.0"/> <wordRepresentations word="s.xmi#//@sentence/@words.1"> <color red=“255“ blue=“0” green=“0”/> </wordRepresentations> <wordRepresentations word="s.xmi#//@sentence/@words.2"/> <wordRepresentations word="s.xmi#//@sentence/@words.3"/> <wordRepresentations word="s.xmi#//@sentence/@words.4"/> <wordRepresentations word="s.xmi#//@sentence/@words.5" bold="true"/> </sentenceRepresentation>

  24. Visual model: Styled text representation A dog sits in a car. A dog sits in a car.

  25. Thank you for your attention. • www.eclipse.org/gmf