Starting working with Eclipse RCP

I'm going to start maintaining an Eclipse RCP application for my current employer soon.
What are your experiences with this platform? What are the pros, what are the cons, what are the caveats that I should be aware of?
Also, what reading materials (books, tutorials) can you recommend? Most of the tutorials I found on the web are outdated, are there any good ones that are more up to date?
I started reading Eclipse Rich Client Platform: Designing, Coding, and Packaging Java(TM) Applications but since it's also out of date, I got stuck pretty much in the beginning, and the book actually seems to be more like a collection of recipes to do something than a genuine book on the subject (it doesn't explain the core concepts very well).
So, what can you tell me about the good sides and bad sides of developing an app with Eclipse RCP, and what are your reading recommendations?


  • Eclipse Rich Client Platform (RCP) with Eclipse Ganymede (3.4) - Tutorial
  • JFace examples
  • Make your Eclipse applications richer with view linking
  • RCP FAQ
  • Java Developer's Guide To Eclipse
  • Eclipse RCP isn't as easy as people put it is. It's essentially writing an Eclipse plug-in and you have to learn a whole new JFace/Eclipse way of doing things.

    The Java Developer's Guide to Eclipse http://ecx.images-amazon.com/images/I/516xVSvxNSL._SL500_AA240_.jpg


    There are many good online references included on the Eclipse Resources page, and on the Eclipse Wiki. There is also quite a bit of good material on Eclipse Live http://live.eclipse.org/ in the form of tutorials and other presentations, some of which come from the eclipsecon conferences.

    I recommend starting with the most recent entries for each of these resources since RCP is much easier now than it was several years ago.

    Some things to try: 1) Use the Platform Command Framework rather than the older Actions framework that was the mainstay of the RCP example programs. 2) Use the databinding farmework to simplify UI wiring. 3) If you're doing a forms-based app, check out the UI Forms API, which provides a good way to control the style of the forms (and adds niceties like collapsible sections). 4) Look at EMF for building your data model - databinding now supports EMF directly.


    Good side: getting your head around all the API and it's requirements is really hard but certainly pays off later as you notice your code becoming better well structured and maintainable. One reason is that you are forced to adhere to all the best practices about developing rich and complex desktop applications.

    Bad side: it's pretty easy to over-engineer your application, so be careful.

    I believe the book you mentioned is the best one so far as most of the foundation is there. My advice after reading this book is to download (better yet, setup your CVS Repository Browser) the Eclipse and its related projects source code from CVS and use it as a guideline on how to solve specific problems. Apart from trial and error, that's the best way to figure out the "Eclipse RCP" way of implementing complex apps. One way to use and learn from this huge amount of example (and most of the time well written) source code is to think about a specific functionality on the Eclipse IDE or its subprojects that does something similar to what you want to implement and go look at its source code.

    链接地址: http://www.djcxy.com/p/18676.html

    上一篇: Eclipse RCP:从表单值生成视图

    下一篇: 开始使用Eclipse RCP