eclipse ui Tag

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

Creating UIs with SWT or RAP is a common task in many projects. While we have a comprehensive set of widgets at our disposal, we only have a handful of layouts to choose from. One of the more popular layouts is the GridLayout. Together with its child the GridData it allows you to cover most of your layout needs. Sometimes nesting several composites is required...

Read More

When it comes to UI testing of Eclipse plug-ins and RCP applications, one usually looks first in the open source project SWTBot or Jubula. However, there are alternatives and different project set-ups and products have very different requirements, when it comes to UI testing. I recently evaluated a few alternatives including SWTBot, Jubula, WindowTester and Squish. All of them have their specific advantages and disadvantages....

Read More

The "Problems" view in Eclipse lists errors and warnings in the workspace. In its default settings this view is not entirely helpful, but it is highly customizable. Today I want to show you how you can configure this view to shift the focus to the interesting errors and warnings in your current area of work. Open the "Problems" view menu by clicking on the little triangle...

Read More

Here is a question that I got on a post about detached views: "How can I detect that a View has been detached from the main window? I would like to adjust the view's behavior in that case." There is no API to obtain that information directly. However it is possible to do this with a few tricks: detached views have an empty window title (i.e. shell.getText().length() ==...

Read More

From time to time, I'm in the situation when I want to suggest a UI change or even try to come up with a completely new UI. While I love programming, it may be easier in these situations to just "sketch" the idea instead of really getting your feet wet. As many people asked me what I use for UI sketches, I thought I should...

Read More

If you are at the Eclipse Summit Europe this week, here are some interesting talks about the work going on in and around Eclipse Riena: * Eclipse RunTime Tutorial, Tue 9:00-12:00, Seminarräume 2-4 – This tutorial connects the dots between different runtime technologies, such as Equinox, Riena, RAP and EclipseLink * Eclipse Riena Project - Overview and a new UI concept for RCP applications, Wed 11:20-12:00, Seminarräume 2-4...

Read More