introduction to the graphical modeling framework
Download
Skip this Video
Download Presentation
Introduction to the Graphical Modeling Framework

Loading in 2 Seconds...

play fullscreen
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
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 tooling
Models: Tooling
  • Palette tools
  • Context menu actions
  • Property sheet
models mapping

Domain model

Tool Definition

Graphical Definition

Mapping model

Models: Mapping
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="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>

visual model styled text representation1
Visual model: Styled text representation

A dog sits in a car.

A dog sits in a car.

ad