Category Archive for: ‘Java’

Eclipse RCP @ JavaOne

I am very happy that my session “The NetBeans Platform Compared to the Eclipse Rich Client Platform” got accepted at this year’s JavaOne conference. This time I will give the session together with Geertjan Wielenga (from Sun’s NetBeans team), who will cover the NetBeans Platform while I can focus on the Eclipse Rich Client Platform.

Advanced RCP Tutorial Slides

Yesterday I gave a 2-hour tutorial about “Advanced Eclipse RCP” at the EclipseCon 2008 in Santa Clara. You can download the tutorial slides here (2.8 MB). All the source code for the demos you can get from the MP3 Manager project home page via anonymous svn access. I would like to thank everybody for the feedback, I am very pleased with the bucket results :).

Dynamic Language Switcher for Eclipse RCP Apps

6

People often ask me how to dynamically change the language in an Eclipe RCP application. I tried it out myselft and have to admit that it is not as easy as I would have expected. The problem is that PlatformUI.getWorkbench().restart() does not allow to set (or change) any new startup parameters, like -nl de. I have already filed a feature request for that (see 222023). The only workaround I found so far is to modify the product’s .ini file of the deployed RCP based product manually. Unfortunately I did not find a solution that works during development using launchers. I have implemented the dynamic language switcher in the plug-in com.siemens.ct.mp3m.language, see the project home page of the MP3 Manager demo (see http://max-server.myftp.org/trac/mp3m). Below is a screenshot showing the language menu:

language menu

A nice set of free flag icons you can find at
http://www.famfamfam.com/lab/icons/flags/.

New HTML Sitemap 1.3 available

2

I fixed a small bug to make the sitemap HTML 4.01 compliant. You can download the new version here.

Eclipse RCP Demo: MP3 Manager Update

13

I have added two new projects for my Eclipse RCP demo application MP3 Manager:

  • com.siemens.ct.mp3m.ui.editors.id3.databinding:
    This editor is very similar compared with the com.siemens.ct.mp3m.ui.editors.id3 editor but uses rudimentary Eclipse data binding. I did not add validation so far but I have planned that for future releases.
  • com.siemens.ct.mp3m.ui.cheatsheets:
    This bundle implements a little cheat sheet and provides help for adding and deleting music folders.

You find the project home page at max-server.myftp.org/trac/mp3m where you get the information for anonymous svn access.

Have Fun

Kai

Advanced RCP Tutorial

I am very happy that my tutorial “Advanced Eclipse RCP” got accepted for EclipseCon 2008!

Eclipse RCP vs NetBeans Platform

7

I am a big fan of Eclipse RCP. But as a software engineer, it is always a good idea to know more than one platform. Since almost one year I am also interested in what’s going on in the NetBeans world and I have to admit, I find it pretty interesting, especially NetBeans Platform 6. Recently I wrote two articles for the German Eclipse Magazin, comparing Eclipse RCP and NetBeans Platform. Unfortunately these articles are only available in German, but if you can read German, part 1 and part 2 are available as PDF.
Here is my conclusion: In the two articles I tried to give a brief comparison of the NetBeans Platform and the Eclipse Rich Client Platform, using my little show case application (MP3 Manager), to compare a few common use cases. I explicitly did not want to make a list of + and -, how a specific issue could be solved better or worse with each platform. My intention was rather to show that many typical uses cases can be implemented using the one or the other platform. Both platforms offer a huge collection of reusable functionality and can help building mature, high quality Java rich client applications. The platforms have some fundamental differences as well as some very similar approaches. When it comes to a platform decision, I think it is very important to get the requirements for the rich client application first. There might be non-functional requirements like scalability, extensibility, reliability, usability and so on as well as functional requirements. After prioritizing the requirements, make the platform choice. Both platforms Eclipse RCP and NetBeans Platform offer a lot and help to build better Java rich client applications.

BTW, I submitted a LongTalk for EclipseCon about this topic. So far I have seen lots of interest in both the Eclipse community as well as the NetBeans community.

Are there any software engineers out there who have experience with both platforms? If so, I would be very interested in sharing experience.

What do you think when comparing both platforms yourself?
Have fun 🙂

Kai

Eclipse RCP Demo: MP3 Manager 3.3.1 available

MP3 Manager is a little project that I use as a playground for Eclipse RCP features. The whole purpose of it is to share information and best practices, how things are done using Eclipse RCP. Please help me improving the code base by trying it out and filing bugs or requests for improvements. It is all Open Source, with anonymous subversion access. You find more information at the project homepage. Here is a (probably incomplete) list of features:

  • Product Branding & Feature Branding
    • Custom Splash Screen
    • Blue and Orange colored demo brandings
    • Images/Icons and About Dialog
  • Internationalization English/German (full Eclipse 3.3 localization still work in progress)
  • New Look & Feel using the Presentation API
  • Loose coupling of views and editors
  • Tree view, tree-table viewsand a virtual tree view
    • Regular Label & Content Provider
    • Using an adapter factory
  • Multi-page editor
  • Use of Commands & Handlers
  • Local help system using the Jetty stack
  • Customized update functionality
  • A Wizard
  • Own Extension Points
  • And much more

Here is a little screenshot:

MP3M

Have Fun 🙂
Kai

OSGi with Eclipse RCP: Import-Package vs. Require-Bundle

I am a big fan of both, OSGi and Eclipse RCP. In terms of flexible modular architecture I prefer to use “Import-Package” rather than “Require-Bundle”. However, probably due to historical reasons, PDE supports “Require-Bundle” much better than “Import-Package”. And, in the current Eclipse 3.3 platform, split packages are used (I guess mostly for compatibility reasons). With my current RCP demo application, I have the following problem with switching to “Import-Package”: After putting my target platform in the list of “Automated Management of Dependencies” (Why is that not the default?, probably I file a feature request) and letting PDE compute the dependencies using “Import-Package”, my application does not run anymore.

I get the error:
java.lang.NoClassDefFoundError: org/eclipse/ui/progress/IProgressService.

Who has an advice or a best practice how generally to proceed here?

Eclipse RCP 3.3.1 and I18N

3

The last piece to complete my demo application’s port to RCP 3.3 would be the localization using different language packs. After one hour I gave up to make the 3.2.1 language packs work with my application. I filed a feature request (Bug id 205732) for that and hope that the new language packs will be available soon.

Page 10 of 11« First...«7891011»