rcp Tag

In EMF you can generate Java Classes not only for your entity objects, but also classes that support viewing and editing these entities. ItemProviders are generated into the EMF edit plugin for each entity class and implement label and content providers. To implement a tree view of your entities you can use the generated label and content providers as follows. [raw] ComposedAdapterFactory composedAdapterFactory = ...

Read More

Ever wondered how you can create a p2 repository from an arbitrary bunch of pre-built Eclipse bundles and features?  OK, you might also be wondering why you would want to do that. Let me give you a 'real world' situation where I badly needed to package p2 repos.  On an RCP Project that I coached last year we switched from PDE-build to Maven Tycho. In our target...

Read More

This post outlines the challenges we encountered when implementing video playback in a single-sourced [1] Eclipse RCP/ RAP [2] application. Our team at EclipseSource is developing medical software which runs both as a web application and an Eclipse RCP application. Hospitals are using this tool as part of the patient’s briefing. During the briefing, the patient is informed about the medical treatments he is going to...

Read More

This tutorial series introduces the new features and concepts of the Eclipse 4 Application Platform, as well as interesting tools and technologies related to the current major release of Eclipse. In the first three parts of this series we covered the following topics: the core of every Eclipse 4 application, the application model; the connection of this model with actual implementations; and the options for...

Read More

This post describes an easy – but little known way – to use native libraries (.dlls) with Eclipse RCP. In my current work, I'm shipping an RCP application that interacts directly with hardware connected to the user's machine. These interactions are done through drivers, written in C, that are available in binary form as shared libraries. The use of shared libraries introduces a few problems: In order to load...

Read More

In my last blog post I introduced the idea of using OSGi services for single sourcing a RAP/RCP application. I think this approach is quite elegant, but it has one major drawback. When you use normal OSGi services in your application you will mix your application code with the OSGi Framework code everytime you reference or register a service. Not only does this look ugly,...

Read More

Probably one of RAP’s best known features is its single-sourcing capabilities. Some time ago we created a guide on Single-Sourcing RCP and RAP applications. The guide recommended a technique where a facade and fragments were used to invoke the RCP or RAP implementation during runtime. With this post I want to show you how to achieve the same the OSGi way. For single-sourcing a RAP or...

Read More

A few weeks ago, my colleague Ralf Sternberg, announced that RAP supports a JQuery integration. What we still needed to do was to create an example that shows how to integrate some JQuery stuff into RAP. Yesterday I took a little time to work on it. I used the JQueryUI Carousel widget as a base. Two hours later the integration and a book store example...

Read More