[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.rcp] Re: How to set services into handler
|
- From: iossif@xxxxxx (iossif)
- Date: Fri, 11 Sep 2009 08:32:26 +0000 (UTC)
- Newsgroups: eclipse.platform.rcp
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
Prakash G.R. wrote:
Which service are you referring to?
Hi,
its nothing special. In this case its a service that sends a message to a
remote interface.
this.service.send(ShortMessage shortMessage);
Another example I ask for how to get the service class into the handler:
this.presenter.openEditor(Favorite favorite);
The presenter opens an editor with the actual favorite selection. How to
put the presenter into the handler?
I'am a little bit confused where the handlers are created and where to set
my services into this handlers. The handler examples I've seen before
don't use external infrastructure or stupidly create their dependencies
themself inside the handler.
You see, its a more general question, where to set such services classes
into a handler. Maybe I am on the wrong track.
Are there any best practices?
Thanks