rap Tag

Update to Luna M7 We've updated the codebase to the upstream Luna M7 bits - remember from the initial post - we had to fork some of the upstream bundles because they contained code we cannot support on RAP. Now the target we provide in our p2-repository matches the upstream codebase. Bugfixes / Features It looks like some of you have experimented with your e4 applications and getting...

Read More

We're occasionally asked how RAP supports UI tests. And while we were aware that there are developers creating UI tests for RAP, we never gathered much experience ourselves. However, in recent months I had the opportunity to delve deeper into this topic myself, specifically researching if Selenium 2.0 works with RAP 2.x. Spoiler: It does. [raw] NOTE: This video has been edited for presentation. [/raw] I should...

Read More

On June 26th we will release Tabris 1.4. Currently we are working on the new features for this release. One of the Killer-Features, a tracking API for the Tabris UI framework, was finished last week. The API comes with a ready-to-use Google Analytics integration. All you need to do is set your tracking ID and activate it. In your code this might look like this: [raw] ...

Read More

In this blog post I'll introduce you to using Eclipse 4 on RAP. Eclipse 4 on RAP means the use of Eclipse 4 API's without the 3.x compat layer. Eclipse 3.x API users can simply stick to the plain vanilla 2.3 release of RAP. If you want to take advantage of the new Eclipse 4 programming model with services, injection and Pojo workbench elements read...

Read More

As you might have noticed, Java 8 was released last week ;). Most programers consider Java 8 the biggest change to the Java programming language ever made. This is mostly because of lambda expressions, default methods and streams. As an SWT/RAP/Tabris coder, the first thing that came to my mind was: "How can this make my SWT code better?". This blog will show you how to...

Read More

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 requests to the embedded OSGi - that's hard to build,...

Read More

Writing JUnit Tests for an application is always a good thing. Writing tests for a Tabris or RAP application for the first time seems more challenging: You might encounter an "java.lang.IllegalStateException: No context available outside of the request processing." exception while running the tests. So, after a quick google you will find a blog post from my dear fellow Johannes that explains that you need to...

Read More

Here is a widespread way of creating a label with a bold font: [raw] Label label = new Label(shell, SWT.NONE); Font boldFont = new Font( label.getDisplay(), new FontData( "Arial", 12, SWT.BOLD ) ); label.setFont( boldFont ); label.setText("Bold Label"); [/raw] Everything seems to be fine with this code. A Label is created with the default font "Arial", the default size "12" and our desired style "BOLD". So what's the problem with this snippet? With the...

Read More