Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Good/bad practice question(using adapters)
icon5.gif  Good/bad practice question [message #552866] Fri, 13 August 2010 21:39 Go to next message
Alexandra Niculai is currently offline Alexandra NiculaiFriend
Messages: 84
Registered: July 2009
Member
Hi

I know it's good practice to use adapters instead of the real model. And this works great for views.
What about commands?
I'm adding to my RCP application a plugin that contains a few commands. These commands bring modifications to the state of the objects of the model. Is is good practice to use adapters in the code of the handlers, or is it better to use directly the objects of the model?
Thank you!

Greetings
Alexandra.
Re: Good/bad practice question [message #552929 is a reply to message #552866] Sat, 14 August 2010 16:07 Go to previous message
Julián Gutierrez Oschmann is currently offline Julián Gutierrez OschmannFriend
Messages: 2
Registered: March 2010
Junior Member
Hi!

Alexandra, the idea behind the adapter pattern in the domain model is make you client classes decoupled from your model structure. Also, you can write adapters interfaces at a higher level of abstraction than you model.
So, if you need this abstraction, the adapter pattern can do the work.
I think there's no a golden rule.

Regards.
Julián.-
Previous Topic:Multiple Applications in one rcp installation
Next Topic:Step to create object contribution
Goto Forum:
  


Current Time: Thu Apr 25 09:34:05 GMT 2024

Powered by FUDForum. Page generated in 0.02833 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top