modeling

EMF Parsley: a web application in a few steps

Introduction With EMF Parsley you can quickly build and easily maintain a web application. Let's see how. Indeed Parsley allows you to build both desktop and web applications from the same code (single-sourcing), leveraging on Eclipse RCP platform and using RAP for the web, but for the purpose of this article we will focus only on the web side. Setting up the environment First of all ensure you have a recent Eclipse IDE installed and running on a brand new workspace. If you downloaded the Eclipse Modeling Package then you already have EMF Parsley installed, otherwise you can install it [...]

By |2017-08-13T09:27:40+00:00August 10th, 2017|

Eclipse EMF: updating the Model

Now we will see how to handle a Model update. Let's say we want to add the "surname" attribute to Author entity. Open the model diagram (Library.ecorediag) and add the new attribute still of EString type Save the changes (Ctrl-S), re-open file Library.genmodel, and re-generate the sources for the following plug-ins: Model, Edit and Editor (remember to click on each of the first three context-menu items) Re-launch the application (doing a Clean and checking the launch, in case of errors)   If you check the database now, you'll find that table "author" has a new "surname" field, which the application [...]

By |2012-06-08T11:29:09+00:00September 17th, 2011|

EMF Development

This section was designed with the aim to be a practical path for learning how to quickly develop Eclipse RCP application based on EMF (Eclipse Modeling Framework) (work is in progress ...) First steps How to create an RCP application From Model to Persistence Eclipse EMF: Designing the Model Eclipse EMF: a CRUD at no-cost Teneo Setup for Eclipse 4.2 ÔÇô Juno Eclipse EMF: an out-of-the-box CRUD for a database Eclipse EMF: updating the Model CDO - Connected Data Objects Visual Development WindowBuilder: installing and EMF databinding WindowBuilder: advanced databinding with CDO Single Sourcing with Rich Ajax Platform (RAP) Single [...]

By |2014-12-19T15:51:31+00:00September 16th, 2011|

Eclipse EMF: a CRUD at no-cost

This tutorial follows the one dedicated to modeling with EMF ( Eclipse EMF: Designing the Model ) In this article we will see how, through EMF automatic code generation tools, it's possible to generate a CRUD, an application that is able to perform typical operations for manipulating the contents of the model: Create (= insert), Read (= Select), Update and Delete. This management requires some form of persistence, however a "channel" storage of these information. In fact, in most cases it should be possible, for example: reload the data stored during a previous run or share data with other instances [...]

By |2012-06-08T11:52:29+00:00July 14th, 2011|

Eclipse EMF: Designing the Model

Eclipse Modeling Framework (EMF) is among the many frameworks of Eclipse ecosystem, the one that allows us to model the so-called application domain of your application, which is the set of entities, their attributes and their relationships. In this tutorial we will see how to use EMF to create the Model of an application. Before proceeding make sure you have a version of Eclipse with everything you need. This article was written using version Eclipse Juno Modeling. The Library model we will use as a sample is taken from the official EMF Tutorial : it consists of the entities Author, [...]

By |2013-10-08T23:38:31+00:00July 13th, 2011|
Go to Top