Sponsors

Engineering logo

Bosch logo

Intland logo

RCP logo

BMW logo

Sigsdatacom logo

BSI logo

Microsoft logo

CAS logo

Andrena logo

bsi logo

OSBF logo

Open Source logo

Bredex logo

sopera logo

Microdoc logo

O'Reilly logo

Soyatec logo

compeople logo

itemis logo

dpunkt logo

Sontatype logo

Eclipsesource logo

sap logo

Xored logo

Oracle logo

Vogel logo

Actuate logo

Creating a Language for Android Apps with Eclipse Modeling

Jan Koehnlein (itemis AG ), MikaŽl Barbero (OBEO ), Holger Schill (itemis AG ), Stephane Begaudeau (OBEO )

Modeling · Tutorial
Tuesday, 09:00, 4 hours | Silchersaal

7
·
8
·
9
·
10
·
11
·
12
·
13
·
14
·
15
·
16
·
17
·
18

As in many modern platforms, programming Android apps requires a mixture of several languages. For example, an Android Activity has a declarative XML part and a behavioral Java part. To make Activity a cross-language abstraction, you usually use an Android-specific IDE that ensures that both parts are in sync, yet such an IDE will usually not allow you to introduce your own abstractions.

A solution to this problem is to define your abstractions in a separate language and compile that language to Android-specific artifacts. While that sounds rather complicated, the Eclipse Modeling Project offers a plethora of frameworks and tools that make it easily possible.

In this tutorial, you will create working Android applications using Eclipse modeling techniques. This talk will start with a short presentation of Android and its development tools. Then you will learn how to define your own abstractions using EMF Ecore and how to create a language and an editor for these with Xtext. Finally, we will implement a generator that creates the Java and XML source code of the Android application with the help of Acceleo. We will demonstrate how these ingredients integrate into the Eclipse workbench just like Java and XML do.

Tutorial Plan

  • Introduction to Android (15min)
  • The Demo Application (20min)
  • Creation of a Programming Language With Xtext (1h35)
  • Break (20min)
  • Creation of a code generator for Android with Acceleo (1h35)
Links

Dr. Jan Köhnlein is working as software architect and consultant for itemis AG in Kiel (Germany). He has earned several years of experience in developing tools for model-driven software development. He leads the EMF Index project and commits to several other Eclipse Modeling Projects including Xtext.

Mikaël Barbero is working as software engineer and consultant at Obeo in western France. He is working on model-driven software migration and modernization. He is using Acceleo on daily basis for this purpose. He is also contributing to several other open source projects about modeling.

Holger Schill is working as software architect and coach at itemis AG in northern Germany. Current fields of activity are textual and graphical DSLs in combination. Holger commits to the Eclipse Project TMF Xtext and several other open source projects.

Stéphane Bégaudeau works as a software engineer at Obeo on Acceleo 3. He also realized a prototype of Acceleo on Eclipse 4