Introduction to the graphical modeling framework
Download
1 / 25

Introduction to the Graphical Modeling Framework - PowerPoint PPT Presentation


  • 82 Views
  • Uploaded on

Introduction to the Graphical Modeling Framework. Artem Tikhomirov, Borland Alexander Shatalin, Borland. GMF Overview. “The Eclipse Graphical Modeling Framework (GMF) provides a generative component and runtime infrastructure for developing graphical editors based on EMF and GEF.”

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' Introduction to the Graphical Modeling Framework' - harlan-paul


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Introduction to the graphical modeling framework

Introduction to the Graphical Modeling Framework

Artem Tikhomirov, Borland

Alexander Shatalin, Borland


Gmf overview
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


Agenda
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


Define requirements for diagram editor
Define requirements for diagram editor

Router

SubNet

Workstation


Building diagram editor with gmf basic steps
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

?



Graphical elements
Graphical elements

  • SVG picture

  • Draw2d “matryoshka”

  • Composite SVG figure


Define diagram structure and generate code

M2T

?

Domain model

M2M

Graphical shapes

Define diagram structure and generate code

Java

code



Hands on q a session
Hands on/Q&A session

Try building your version of GMF diagram


Gmf architecture gmf tooling

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


Models domain what is meta model
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


Models graphical definition

Figures

Shapes

Models: Graphical Definition


Models graphical definition1

Diagram Elements

Models: Graphical Definition


Models tooling
Models: Tooling

  • Palette tools

  • Context menu actions

  • Property sheet


Models mapping

Domain model

Tool Definition

Graphical Definition

Mapping model

Models: Mapping


Models generation

M2T

M2M

Models: Generation


Gmf architecture runtime component
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


Variation points

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



Runtime lite
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



Visual model styled text representation
Visual model: Styled text representation

A dog sits in a car.

A dog sits in a car.

<sentenceRepresentation

sentence="[email protected]">

<wordRepresentations

word="[email protected][email protected]"/>

<wordRepresentations

word="[email protected][email protected]">

<color red=“255“ blue=“0” green=“0”/>

</wordRepresentations>

<wordRepresentations

word="[email protected][email protected]"/>

<wordRepresentations

word="[email protected][email protected]"/>

<wordRepresentations

word="[email protected][email protected]"/>

<wordRepresentations

word="[email protected][email protected]"

bold="true"/>

</sentenceRepresentation>


Visual model styled text representation1
Visual model: Styled text representation

A dog sits in a car.

A dog sits in a car.


Thank you for your attention
Thank you for your attention.

  • www.eclipse.org/gmf


ad