tips Tag

Short Story We have just published a tutorial in which we try to answer the most frequently asked questions about starting to develop an application based on Eclipse. It is focused on using Eclipse as a platform, not only as an IDE: See here for the tutorial. Long Story Eclipse is not only an IDE, but also a platform to build applications and tools. The “Eclipse Platform” is a...

Read More

The dynamic typing in JavaScript allows for more flexibility, but it comes at the price of weaker tool support. Explicit type definitions in your code can support editors to provide more exact suggestions as you type … … and to discover problems earlier … TypeScript is a superset of JavaScript that adds type information to the language. It is compiled to regular JavaScript, so it can be...

Read More

[caption id="" align="alignright" width="240"] Image via CC from Sh4rp_i[/caption] Documents in Apache CouchDB are usually not really deleted but rather marked as such. In use cases with many document insertions and deletions, this considerably affects disc space consumption and performance. This post shows a practical way how to get rid of deleted documents and make your data base fast and efficient again. Deletion is not deletion Usually documents...

Read More

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 Shell, and the SWT mainloop. That's this piece of code that...

Read More

In RAP 2.2 we introduced the Row Templates feature, which allows you to layout the cells of table rows in different ways than just in columns. In RAP 2.3 we improve on this a bit by allowing not just absolute (pixel) but also percentage values for positioning. However, another cool feature that isn't documented (because it's considered experimental) is that you can now style your...

Read More

[caption id="" align="alignright" width="320"] Image via CC from Hades2k[/caption] JSON is becoming more and more important as a data exchange format, especially in Ajax web frameworks and RESTful web services. Apache JMeter, which is a very popular tool to perform load tests for web applications, does not come with native support to handle HTTP responses with JSON bodies. This post shows different possibilities how to deal...

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

[caption id="attachment_19508" align="alignright" width="160"] Copyright (c) Pivotal Labs[/caption]I recently started using Jasmine to write my JavaScript tests. I really like it - it made writing tests actually kind of fun. I especially love that you can write tests with mocks in a similar manner as you would using Mockito in the Java world. A mock is basically a lightweight object that imitates the API and (to...

Read More

This week I updated my IDE to Eclipse 4.3.2 which comes with Egit 3.2. After that my "Push to Gerrit" action was gone from the usual place. If the same thing happens to you, here is how to get it back: In the context menu, select Team > Remote > Configure Push to Upstream. In the upcoming dialog, select Add   Configure HEAD to point to refs/for/master   After applying, you...

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