|Re: [EMFForms] Additional model-specific services [message #1550814 is a reply to message #1547206]
||Wed, 07 January 2015 08:31
| Jonas Helming
Registered: July 2009
in any case you need a custom renderer, which adds the desired behavior
to the UI. However, this custom renderer can in most cases be "generic"
meaning, it will work for all domain model elements. The custom renderer
could access a generic interface abstracting the service you want to
provide or a registry, where you can retreieve a service which is
specific for the model instance.
Maybe you can describe your use case more in detail, it is a little bit
difficult to answer this in an fully generic way.
Am 05.01.2015 um 10:41 schrieb Ondrej Ilcik:
> Hi folks, I would like to provide additional functionality on top of
> base EMFForms renderers, like (but not limited to) auto complete, and
> I'm wondering if there's a way to do this in a generic way.
> So, rather than implementing custom renderers which are aware of
> specific model element (which is the only way I know about right now), I
> would like to implement a generic renderer with autocomplete feature and
> then somehow bind to a model-specific "service" providing required info.
> I don't mind if this binding is done in a declarative way or
> programatically in code.
> Thanks in advance for any ideas.
Get professional Eclipse developer support:
Powered by FUDForum
. Page generated in 0.04646 seconds