Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

EclipseCon 08 - Agile RCP

1,083 views

Published on

  • Be the first to comment

  • Be the first to like this

EclipseCon 08 - Agile RCP

  1. 1. Agile RCP Presenter First using Spring Dynamic Modules Heiko Seeberger, metafinanz © 2008 by Heiko Seeberger; made available under the EPL v1.0 | March 20th, 2008 | www.metafinanz.de
  2. 2. Agile development of user interfaces • Which process leading from requirements to UI code? • How can UIs be unit-tested? UI code Unit tests Requirements Agile RCP - Presenter First using Spring Dynamic Modules | © 2008 by Heiko Seeberger; made available under the EPL v1.0
  3. 3. Presenter First architecture Reference Event • MVP variant: Passive view. Presenter • Model and view abstracted as interfaces. IView IModel • Unit-testing presenters by mocking model and view. MockView MockModel PresenterTest Agile RCP - Presenter First using Spring Dynamic Modules | © 2008 by Heiko Seeberger; made available under the EPL v1.0
  4. 4. Presenter First process • Requirements drive the design. Presenter User Story +onQuery() The user can query for … books by entering the title in the query form … IView IModel +getName() +getBooks() … … Agile RCP - Presenter First using Spring Dynamic Modules | © 2008 by Heiko Seeberger; made available under the EPL v1.0
  5. 5. Presenter First on Eclipse RCP • MVP triads managed by a Presenter Spring application context. • Spring Dynamic Modules View Model integrates Spring into OSGi. Spring application context OSGi bundle Agile RCP - Presenter First using Spring Dynamic Modules | © 2008 by Heiko Seeberger; made available under the EPL v1.0
  6. 6. Presenter First on Eclipse RCP • Plug into the workbench via Presenter factories for views and editors. View Model views xPt ViewPart Factory Spring application context Workbench Agile RCP - Presenter First using Spring Dynamic Modules | © 2008 by Heiko Seeberger; made available under the EPL v1.0
  7. 7. Demo – User story, view and model User Story By clicking “Next“ the user can request a new random number which is shown in a text field. By clicking “Clear“ this text field is cleared. Agile RCP - Presenter First using Spring Dynamic Modules | © 2008 by Heiko Seeberger; made available under the EPL v1.0
  8. 8. Demo – Presenter Agile RCP - Presenter First using Spring Dynamic Modules | © 2008 by Heiko Seeberger; made available under the EPL v1.0
  9. 9. Demo – Test Coverage • Presenter 100% covered! Agile RCP - Presenter First using Spring Dynamic Modules | © 2008 by Heiko Seeberger; made available under the EPL v1.0
  10. 10. Demo – Spring configuration Agile RCP - Presenter First using Spring Dynamic Modules | © 2008 by Heiko Seeberger; made available under the EPL v1.0
  11. 11. Agile RCP • Framework for agile development of UIs with RCP: Based on standards like OSGi, Spring DM and MVP. Already contains library for Presenter First on RCP. Tooling and test support planned. • Plans: 0.9 release in April (Eclipse Forum Europe). Make Agile RCP open source. Agile RCP - Presenter First using Spring Dynamic Modules | © 2008 by Heiko Seeberger; made available under the EPL v1.0
  12. 12. Thank you! • For further information: Visit our Agile RCP website at agilercp.metafinanz.de, Join my session at Eclipse Forum Europe or Contact me at heiko.seeberger@metafinanz.de. Agile RCP - Presenter First using Spring Dynamic Modules | © 2008 by Heiko Seeberger; made available under the EPL v1.0

×