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 

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 [...]

7 Comments
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 [...]

11 Comments
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 [...]

3 Comments
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
Jun 27th, 2013

RAP 2.1 Released

RAP 2.1

As every year in June, the RAP project has released a brand new version together with the annual Eclipse release. Last year, we shipped RAP 1.5 with Eclipse Juno, this time we’re already onto Release 2.1. A lot has been going on in the meantime. In February we released RAP 2.0–the first release that builds entirely [...]

8 Comments
May 14th, 2014

A Fast and Minimal JSON Parser for Java

Overall performance

In the RAP project, reading and writing JSON are critical operations, since the server processes and creates JSON messages for a large number of clients at a high rate. For this reason, we need something fast for this job. When we switched to JSON, we included the org.json parser, which is reasonably small but not [...]

12 Comments