|Re: DI question [message #894566 is a reply to message #894530]
||Mon, 09 July 2012 15:35
| Mauro Condarelli
Registered: September 2009
On 09/07/2012 16:15, Paul Webster wrote:|
> OSGi has the notion of multiple provides of a service, and of properties
> and rankings that can help distinguish them.
> What kind of pattern is it you want to apply to your injected Object?
> Are you talking OSGi-like inter-bundle communication services?
I am working (personal project, in my spare time) to implement a full
fledged TextEditor for E4 (in it's own plugin).
I am starting from the standard SourceViewer and adding capabilities.
I was toying with the idea to provide a generic interface for hover,
syntax coloring and similar things. The user of the TextEditor could
provide one or more (e.g.) "hover services" and the global hover would
display all hovers that are compatible with the current location.
Same thing with Syntax coloring, spell-checking and other possible
This would enable to define a new Annotation, together with a way to
display it and, possibly, some display criteria and have the TextEditor
to automatically pick it up.
Is this a stupid idea, for some reason?
Powered by FUDForum
. Page generated in 0.02934 seconds