Re: Input for generated editor [message #617826] |
Thu, 17 April 2008 17:35 |
Ed Merks Messages: 33141 Registered: July 2009 |
Senior Member |
|
|
Barbara,
Martin Taal has invested a fair bit of time in ensuring that Teneo hooks
up well with the GMF editor. Maybe it might solve your problems
directly. I've added the EMFT newsgroup to the "to" list of the reply.
I imagine you should be able to use EMF's URIEditorInput as the editor
input and that all your code to communicate with the data base would be
done either at the URI converter level or ResourceImpl side of things.
With the URIConverter changes in EMF 2.4, this should be even easier to
accomplish, if something like XML data columns are your target.
Maybe you could explain a bit more what you're trying to do?
Barbara Rosi-Schwartz wrote:
> Hello all.
>
> I have generated a graphical editor from my domain model. Since my
> application is database, not file system, driven, I knew I would have
> to rewire the generated editor to accept my "virtual" object as
> retrieved from the database and I was hoping this could be done in a
> relatively straightforward manner, through localised changes in one or
> two classes.
>
> However a perusal of the generated code leads me to believe that the
> dependency on the editable object being on the file system (or a URI
> resource) is deeply ingrained and that it is going to take quite a lot
> of surgery to switch to a database driven paradigm.
>
> Is this accurate or am I missing something?
>
> If so, I do wonder why so many of the Eclipse APIs and facilities
> continue to assume that the whole world is in a file system! :-)
>
> TIA,
> B.
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03136 seconds