MVP Example Code
November 8th, 2007 | Published in Uncategorized | 6 Comments
Note: For those following the saga of my post titles reverting to my WordPress user name, it appears the problem is that I have an avatar image in my WordPress profile (thanks Gunnar!). WordPress is embedding the image in my RSS feed with a “title” attribute and Planet Eclipse is grabbing the string from there. I’m now trying to work with WordPress to remove my avatar because there is no way to do this through their UI. The bottom line is if you use WordPress and you’d like to add your feed to Planet Eclipse, do not specify an avatar.
I gave a talk this morning at Eclipse World on Leveraging the Model-View-Presenter Pattern in Rich Client Applications. And as promised, here is the sample code illustrating the various approaches one can take in integrating MVP and RCP.
I’m about to catch a flight, so I don’t have time to go through all the details needed to get the code running. In short, though, if you get RAP via update site you should be able to run the code. I’ll try to help out with any issues you run into.
Thanks to all who attended the presentation!



Patrick on the RCP Panel at EclipseCon
November 16th, 2007 at 7:41 pm (#)
It is not clear how to get the sample applications running – any tips would be greatly appreciated. Thanks.
November 25th, 2007 at 11:58 pm (#)
To get the regular RCP client running, just open the mvp-rcpclient.product file in the com.rcpquickstart.mvp.rcpclient plug-in, and click on the “Launch and Eclipse application” link.
To get the RAP version running, you’ll first need install the RAP tooling and target platform via an update site. You can find the update site URL and instructions at:
http://www.eclipse.org/rap/gettingstarted.php
Once you’ve done this, you can then open the mvp-rapclient.product file and click on the “Launch a RAP Application”. Let me know how it goes.
— Patrick
April 16th, 2008 at 6:38 pm (#)
Interesting example, but I don´t really get the point where´s the difference between mvc and mvp, isn´t this the same? Could you spend some words on this? Greetz from munich, Germany. Martin
April 16th, 2008 at 6:49 pm (#)
Hi Marti,
Thanks for the comment.
I suppose the difference is that with MVP you’re creating a specific space in which controller type logic can live. Most RCP applications created today wire the view directly to the model, but would benefit from the introduction of a presentation layer in the middle. You could argue that MVP is just a specific application of MVC, but I think the pattern is useful nonetheless.
— Patrick
April 18th, 2008 at 5:33 pm (#)
no doubt about this, thank you! I really appreciate your blog entries:-)
July 13th, 2008 at 11:06 am (#)
[...] an den View. Das ist im Prinzip MVP in 30 Sekunden;-), ein gutes Beispiel hierzu findet sich hier hier. Wie bereits zuvor erwähnt, hat Martin Fowler dieses Pattern in zwei verschiedene Patterns [...]