MVP Example Code

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!

Advertisements

6 Responses to MVP Example Code

  1. RCP Novice says:

    It is not clear how to get the sample applications running – any tips would be greatly appreciated. Thanks.

  2. pjpaulin says:

    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

  3. Marti says:

    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

  4. Patrick says:

    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

  5. Marti says:

    no doubt about this, thank you! I really appreciate your blog entries:-)

  6. […] 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 […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: