Archiv für die Kategorie »Eclipse«

Default enum literals for Xtext generated EMF models

Dietmar Stoll

Xtext allows to easily build fully-fledged editors for domain specific languages (DSL) which are based on the Eclipse Modeling Framework (EMF). While existing Ecore models may be used, Xtext is also able to infer an Ecore model from the Xtext grammar. For complex Ecore models, it should certainly be considered to manage them independently, e.g. with Xcore. However, a few simple tweaks of grammar rules can influence the automatically generated Ecore model quite remarkably (e.g. the inheritance hierarchy) [...]

Multiple Validators in Xtext

Dietmar Stoll

Early validation of domain specific languages (DSLs) and suggestions on how to fix these errors ('quickfixes') are key for a good end user experience and for avoiding problems in the toolchain, for instance in generators that use DSL models: The more editor validations, the better. This description shows how to improve the maintainability and modularity of validation code for Xtext DSLs by simply splitting them. In the generated [MyDsl]JavaValidator, an annotation referring to other custom validators [...]

Where no diagram editor has ever gone before...

Jan Köhnlein

I should have been more suspicious about the Ferengi salesman I bought my LCARS system from. Ferengi have always been skeptical towards JavaFX. I should have known that this device had been tampered with in order to bring my system down in the middle of my demo at EclipseCon Europe. Ferengi petaq!Nevertheless, I could organize a new working LCARS terminal now and here is my demo. It demonstrates JavaFX's flexibility to create a diagram editor that does neither look like nor behave like a dull lines [...]

Eclipse Diagram Editors From A User's Perspective

Jan Köhnlein

I believe that the Eclipse's diagram editing frameworks have a lot to catch up when it comes to usability. For illustration I've created a screencast on how a typical Eclipse graphical editor appears to a user. I have used the Ecore Tools editor as an example, but most issues presented are caused by defaults of GMF or GEF which are pretty hard to change. So don't be surprised if you re-encounter these or similar issues in Graphiti, Sirius etc. The screencast doesn't even cover the rendering errors [...]

Multi-touch Gestures For JavaFX Apps Running in SWT

Jan Köhnlein

I am currently preparing a demo for my talk at EclipseCon Europe 2013. Embedding my JavaFX based graphical editor into Eclipse went smoothly thanks to the FXCanvas that bridges SWT and JavaFX. But I realized that multi-touch gestures did no longer work.I filed a bug for that, but I could not resist trying to find out what's wrong myself. You may not know that the sources of JavaFX are open now. So after cloning their mercurial repo and browsing a couple of classes I found out that SWT's GestureEvents [...]

Generating AUTOSAR basic software with Xpand and Artop

Andreas Graf

AUTOSAR basic software can be configured by a lot of different parameters. Both for AUTOSAR standard modules and vendor specific basic software modules, the parameters that can be configured are defined in parameter definitions and the actual values are configured … Weiterlesen →

Obi-Wan at the Edge

Jan Köhnlein

There are two hard problems in computer science: cache validation, variable substitution, and off-by-one errors.      (unknown source)The uncounted latter is often referred to as OBOE or, with a geek sense of humor, "Obi-Wan error".Obi-Wan In Eclipse Diagram EditorsIn an older post, I already mentioned one major weakness of GEF (3.x): All coordinates are integers. One problem with that is that it can easily result in off-by-one rendering bugs. That unfortunately holds for [...]

A common component model for communication matrixes and architecture metrics for EAST-ADL, AUTOSAR and others.

Andreas Graf

In the engineering process, it is often of interest to see communication matrixes or metrics for your architecture. Depending on the meta-model (EAST-ADL, AUTOSAR, SysML)  and the tool, that kind of information might or might not be available. In the … Weiterlesen →

AUTOSAR splittables and Artop

Andreas Graf

AUTOSAR splittables are a powerful modelling mechanism. In short, they allow you to split the contents of packages and other model elements over more than one .arxml (you can find more in my old post on this topic). However, it … Weiterlesen →

Eclipse Demo Camp Kepler Stuttgart Retrospective

Niko Stotz

We had a great DemoCamp in Stuttgart. About sixty people crowded the room and welcomed every beverage the hotel could come up with. Please refer to the Eclipse Wiki for abstracts, slides and additional links for all demos. Andreas Sewe demonstrated Code Recommenders, including their newest feature called Hippie Code Completion. He explained the various […]