emf

Build your EMF Parsley application

Introduction In a previous article we have seen how to create from scratch a web application example with EMF Parsley. Now we'll go a step further and in particular we will see how to: make some little tweaks to make it easier the development customize the application Internal or External browser? In order to test the application you can use both the internal browser (the one that opens inside Eclipse IDE by default when you launch the application) or any other browser (external) you wish, as far as you point to the same URL. Using RAP you may see often [...]

By |2017-08-13T09:37:38+00:00August 13th, 2017|

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|

First Eclipse 4 Training in Italy with Vogella

Last week I had the chance for a unique and amazing experience: being co-trainer, side-by-side with Lars Vogel, for the first Eclipse e4 Training in Italy! It has been a five days of intensive and engaging learning time, alternating slides presentation for showing the concepts to live-coding from-scratch examples. Further, after every presentation, the participants had the chance to practice the just learned concepts, ask, share doubts and approaching techniques. Since the very first moments it emerged how powerful is this new development platform; here are some among the main advantages, with respect to the previous 3.x way. Application model [...]

By |2014-12-04T11:47:56+00:00March 14th, 2013|

Single sourcing for databases management with RAP, EMF and Teneo

In the previous article Single sourcing with Eclipse RAP we have seen how to develop an Eclipse project and then run it both as a Desktop (RCP) Application an as a Web (RAP) Application. Now we will see how to go further and develop a database Application with the same dual approach. We will use EMF and Teneo for this, in the same way showed in the series of tutorials "From Model to Persistence" at page EMF Development. In the following instructions we must make a clear distinction between installing some feature into the IDE or into the Target Platform [...]

By |2012-08-15T16:06:27+00:00August 15th, 2012|

CDO – Connected Data Objects

Introduzione a CDO Questo framework, che è un componente del progetto EMF, permette la condivisione di un modello EMF. Se con Teneo quindi possiamo fare in modo che ciascun client possa accedere ad un database (realizzando un client/server a due livelli), con CDO abbiamo la possibilità che i vari client accedano ad un server che mette loro a disposizione la medesima istanza, condivisa, del modello EMF. In questo tutorial vedremo come: installare CDO creare un server CDO creare un client CDO Per una documentazione dettagliata su CDO potete consultare il seguente link http://www.eclipse.org/cdo/documentation/ Mentre qui potete scaricare le varie versioni [...]

By |2020-04-27T09:20:45+00:00September 23rd, 2011|

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: an out-of-the-box CRUD for a database

This tutorial assumes that you have followed these other tutorials in the specified order: Eclipse EMF: Designing the Model Eclipse EMF: a CRUD at no-cost the goal here is to show how, with just some extra lines of code added to the EMF generated plugins, we can have our model persisted and maintained on a database. We will use MySQL as the target database, so make sure you have the access to such a database server (you can always download it at http://www.mysql.com/downloads/mysql). We'll use the "test" schema (pre-loaded empty while installing MySQL); anyway you can use another schema simply [...]

By |2013-01-20T10:57:25+00:00August 11th, 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