Articoli

Xtext 2.1: using Xbase expressions

On a previous post, I started to blog about how Xtext 2.1 made it extremely easy to have a powerful integration with Java in your DSL. In this post I'd like to continue to experiment with this mechanism, and in particular I'll start to use Xbase, a new expression language library which allows to integrate (Java-like) expressions in your DSL. If you take a look at the Five simple steps to your JVM language, you'll see the power of Xbase! Moreover, in Xtext 2.1, using Xbase is even easier since by writing only a AbstractModelInferrer you'll get a full integration [...]

By |2012-06-08T11:15:15+00:00November 23rd, 2011|

Using JVM Types in Xtext 2.1 and the ImportManager

Xtext 2.1 made it even easier to access Java types from your DSL; you can find some paragraphs in the documentation. In particular, the new features of Xbase seem to make this integration even more powerful! This paragraph in the documentation briefly describe how to refer to Java elements using JVM Types, and then dedicates much more room to accessing Java Types using Xbase. In this post, I'd like to document some my experiments/experiences in accessing JVM Types without using Xbase, and in particular, not by using the good ol' Domainmodel example, but something even more simpler, so that I [...]

By |2012-06-08T11:15:38+00:00November 21st, 2011|

Eclipse GMF: a graphical editor for EMF models

Now we are going to see how to generate a complete graphical editor for the EMF model we created in preceding tutorials, Library.ecore. For this purpose, we need to work with another framework, Graphical Modeling Framework (GMF), currently included in a broader set of Eclipse Projects, Graphical Modeling Project (GMP). A s the official Wiki states, GMF ÔÇ£provides a generative component and runtime infrastructure for developing graphical editors based on EMF and GEFÔÇØ, that is it acts like a bridge between EMF (that allows the model definition) and GEF (a lightweight graphical framework, based on MVC architecture), generating the complete [...]

By |2020-04-27T08:44:39+00:00November 17th, 2011|

Considerations about Agile to the Better Software 2011

What is “Agile”? What are the agile methods? What do they promise? Most of the readers surely know! They are a set of methods that helps to organize the work in a better way and, consequently, increase the productivity. But, sometimes, even though we strictly follow their rules, we can’t get to the goals that we hope to achieve. Why? […]

By |2012-01-04T14:50:46+00:00October 21st, 2011|

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|

Looking forward to EclipseCon Europe 2011

This year old Eclispe Summit Europe changes his name to EclispeCon Europe and celebrates the 10th birthday of the Eclipse project. The event will kick off a series of birthday parties around the world to celebrate the important milestone. One of the main news of this year is that Java 7 Summit will be a co-located event at EclipseCon Europe. The Summit will feature expert speakers from Oracle and the growing OpenJDK community. Keynotes Hardware and Robotic are other big new entries of this edition. Since James Gosling moved from Google to this new world, we all are waiting for [...]

By |2011-09-24T07:36:13+00:00September 23rd, 2011|

Launch checking

In case you get some error during launch, it is reccomended to check that the launch itself contains all needed plugins. To do this, click Run -> Run Configurations... select the launch go to Configuration tab and make sure that Clear the configuration area before launching flag be active then go to Plug-ins tab and verify that all dependences are resolved, with button Validate Plug-ins if you get a popup with message "No problems were detected." you are done, otherwise, if some dependence is missing, press button "Add Required Plug-ins", then Apply. Back to index

By |2012-06-08T11:27:50+00:00September 17th, 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|

Clean workspace

In case of errors in the workspace, it could be useful to make a Refresh and a Clean operation. Here you'll find how: Refresh Let's select all plug-ins inside the workspace, right-click Refresh on the context menu. Clean Click the menu item Project => Clean... Back to index

By |2012-06-08T11:44:04+00:00September 17th, 2011|
Go to Top