Ralf Sternberg

Ralf is committer and project lead of the Eclipse RAP project. At EclipseSource, he is responsible for the development of the RAP core library and helps customers to use the platform effectively.

Twitter Google+ GitHub 

Mar 4th, 2015

Unit Testing in RAP 3.0

When you test components of a RAP application, you have to simulate the environment that RAP UI code normally runs in. Thanks to a new API, this becomes easier in RAP 3.0. In an earlier post, my colleague Johannes explained how to write unit tests for RAP 2.x. This approach required more boilerplate code to [...]

Leave a Comment
Feb 16th, 2015

CollectionView: Display Data Sets in Tabris.js


The CollectionView is one of the most powerful widgets on iOS. On Android, there’s a similar widget called RecyclerView. Both widgets implement the same idea: they display a data set by creating only as many cells as fit on the screen and mapping the visible data items to these cells. The cells are then recycled [...]

Jul 4th, 2014

Do you know the SWT templates in Eclipse?

mainloop template

Often when I use SWT templates in a presentation, some people look amazed, so I thought it’s worth sharing. If you write SWT code and don’t know these templates yet, you may be wasting time typing the same code over and over again. Whenever you write an SWT snippet, you start with a Display, a [...]

Leave a Comment
Jun 13th, 2014

Ensure Class Library Compatibility in a Maven Build

When you build jars that are supposed to work with a specific JRE version, it’s not sufficient to set the correct compiler level. Even if the compiler creates byte code for a particular language version, your code may accidentally use API that is not available in the class library of this Java version, and the [...]

Leave a Comment
May 23rd, 2014

3 Good Reasons to Avoid Arrays in Java Interfaces

toArray performance

If you still find yourself defining methods like this public String[] getParameters(); in an interface, you should think again. Arrays are not just old-fashioned, there are good reasons to avoid exposing them. In this article, I’ll try to summarize the main drawbacks of using arrays in Java APIs. [ Looking for more tips on writing [...]

May 27th, 2014

Deploying RAP Applications Made Simple – Introducing the Virgo RAP Server

Yes, we love building modular web applications, if they just were easier to deploy on a server! Wrapping OSGi applications in WAR files, apparently still the most popular deployment option for RAP, results in a complicated setup: a web app containing an OSGi runtime together with all bundles, configuration, and a bridge servlet that delegates [...]

May 28th, 2014

RAP 2.2 is available

Markup in tooltips

Looking back on another eventful year for the RAP project, today we’re proud to publish the results in a new release, RAP 2.2. Let’s have a look at the highlights: Client-side Scripting We started off the work on RAP 2.2 with integrating the ClientScripting from the Incubator project into RWT. With this new feature, you [...]

Leave a Comment
Dec 6th, 2013

Run UI tests in the background on Linux

UI tests on a virtual display

When you run JUnit tests that open windows and dialogs, all these windows pop up on your screen like fireworks, making your desktop unusable for minutes. If you’re lucky enough to work on Linux, there’s an easy way to get rid of all the flickering. You can simply redirect your UI tests onto a virtual [...]

Nov 27th, 2013

Minimal JSON 0.9.1 available on Maven Central

JSON parser benchmark

Earlier this year I’ve introduced Minimal JSON, a slim and fast Java library for reading and writing JSON. In contrast to object mappers such as Gson or Jackson, Minimal JSON does not more than reading a JSON text into a memory-efficient Java representation that can be accessed, modified and serialized to JSON again. You can [...]

Leave a Comment