Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "ESON"

(documenting https://git.eclipse.org/r/#/c/46180/)
(Direct links to existing videos and presentations, and History)
Line 34: Line 34:
  
 
The Eclipse Installer (based on Oomph) is great to get it all set up.
 
The Eclipse Installer (based on Oomph) is great to get it all set up.
 +
 +
== History ==
 +
 +
ESON was originally born as https://code.google.com/a/eclipselabs.org/p/efactory/, later re-incarnated on https://github.com/vorburger/efactory, and as of 2014-12 the project has been formally accepted and integrated as a sub-project of the official Eclipse Modeling Framework (EMF) on eclipse.org.
  
 
== Further Documentation ==
 
== Further Documentation ==
  
Doc with linked demo videos: http://git.eclipse.org/c/emf/org.eclipse.emf.eson.git/plain/README.md
+
* https://www.youtube.com/watch?v=nS3Y5KbaIfY screencast of Form Generator example
 +
* first blog http://blog2.vorburger.ch/2013/06/efactory-ii-xobjects-ehutn.html (incl. the introductory screen cast http://www.youtube.com/watch?v=ToUWqIRHkHY)
 +
* second blog http://blog2.vorburger.ch/2013/12/efactory-ii-eson-201311-update.html (and it's screencast at http://www.youtube.com/watch?v=fSq_zes4kv8)
 +
* slides from my talk at EclipseCon SFO 2014 https://www.eclipsecon.org/na2014/session/eson-emf-simple-object-notation-textual-dsl-syntax-alternative-xmi-formerly-known-efactory (https://docs.google.com/presentation/d/1tCrjnVw48IoYPZ5kYyPFvZscTTcSZ5oRZU4SSkeKaII/edit#slide=id.p)
 +
* slides from the Modeling Symposium during EclipseCon Europe 2013 at https://docs.google.com/presentation/d/1pHLD9p1NSa6fuToCAZkk9GnCcriXco8RdmrwyoOxYds/
  
 
TBD Transfer, and update, old documentation from https://github.com/vorburger/efactory/blob/eclipse.org/org.eclipse.emf.eson.help/help/concepts.mediawiki
 
TBD Transfer, and update, old documentation from https://github.com/vorburger/efactory/blob/eclipse.org/org.eclipse.emf.eson.help/help/concepts.mediawiki
 +
 +
Older doc: http://git.eclipse.org/c/emf/org.eclipse.emf.eson.git/plain/README.md

Revision as of 10:09, 10 May 2015

ESON - EMF Simple Object Notation

Introduction

ESON is a textual syntax for EMF models; like XMI is a XML-based syntax, ESON is a more human readable notation. It complements Xcore, which as a textual syntax for Ecore can define your EClass & Co.while ESON can represent their instances.

ESON is implemented based on Xtext, and *.eson files are thus truly textual representations; for example, changes made to your EObject are applied incrementally and preserve comments in or the formatting of the text. Crucially, users of ESON do *NOT* require any Xtext know-how or code generation for their Ecore models, because ESON is a fully dynamic.

How to use

Install

Install it from https://hudson.eclipse.org/xtext/job/eson/lastSuccessfulBuild/artifact/targetPlatform/

ESON Editor UI

The Editor shows the DSL source on the left, and a tree view of the model on the right. The Properties view allows to edit the currently selected node. Changes in any of these 3 parts are live auto synchronized to the other (without saving).

Double clicking on the background in source on the left or the tree on the right maximizes and hides the respective other part, double clicking it again restores the default split sash presentation.

The traditional read-only Outline view is intentionally disabled, to avoid end-user confusion with the right-hand side of the editor.

Programmatically

Using ESON, any *.eson file can be loaded as a normal EMF resource. An instance of your "real" EMF model described by the ESON will be available in getContents().get(1); the get(0) will give you the internal Xtext representation which typically you won't be interested in. This resource has bi-directional synchronization of changes made to either of these two models - so you can use it like a "normal" EMF model, save it, and the ESON will be correctly updated.

Curiosum & Noteworthy

ESON supports EClass, EAttribute etc. names with dots in them (that is dots in the actual name, not dots to separate the name from the EPackage/s). While this is not typically valid in ECore, it was added to ESON to support a particular use case.

How to contribute

Src: http://git.eclipse.org/c/emf/org.eclipse.emf.eson.git/ ("Pull Requests" via Gerrit more than welcome!)

The Eclipse Installer (based on Oomph) is great to get it all set up.

History

ESON was originally born as https://code.google.com/a/eclipselabs.org/p/efactory/, later re-incarnated on https://github.com/vorburger/efactory, and as of 2014-12 the project has been formally accepted and integrated as a sub-project of the official Eclipse Modeling Framework (EMF) on eclipse.org.

Further Documentation

TBD Transfer, and update, old documentation from https://github.com/vorburger/efactory/blob/eclipse.org/org.eclipse.emf.eson.help/help/concepts.mediawiki

Older doc: http://git.eclipse.org/c/emf/org.eclipse.emf.eson.git/plain/README.md

Copyright © Eclipse Foundation, Inc. All Rights Reserved.