Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » editor code usage
editor code usage [message #507588] Wed, 13 January 2010 18:22 Go to next message
Mauro Condarelli is currently offline Mauro CondarelliFriend
Messages: 428
Registered: September 2009
Senior Member
I'm afraid I'm not using EMF in the "Right Way", so, before proceeding,
I would like to have some comments from some knowledgeable person.

I have built mu model.

I am now building the editor for it.

I see there is a way to get a default editor built automatically and it
works (no surprise!); problem is it is a completely general editor and
not what I need (and it couldn't be otherwise).

Thus I started writing my own editor with all text edit fields, buttons
to add specific children, listeners to check when some field has changed
to update the model... and essentially using just the model and
model.impl. Then I started wondering if I am doing the right thing.

Question is: is there a way to build a custom editor leveraging on the
classes in model.edit and model.editor?
If such a thing exists I didn't find a way to do it, but it seems it
should, since otherwise all the effort spent in generating those
packages seems a bit wasted.

I am sure I don't understand something, but I'm still unsure about what
it is, so the question is rather vague :(

Can someone point me in the Right Direction, please?

Thanks a lot in Advance (and also in retrospect for all the good work done!)

Regards
Mauro
Re: editor code usage [message #507710 is a reply to message #507588] Thu, 14 January 2010 12:36 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Mauro,

Comments below.

Mauro Condarelli wrote:
> I'm afraid I'm not using EMF in the "Right Way", so, before
> proceeding, I would like to have some comments from some knowledgeable
> person.
>
> I have built mu model.
>
> I am now building the editor for it.
>
> I see there is a way to get a default editor built automatically and
> it works (no surprise!); problem is it is a completely general editor
> and not what I need (and it couldn't be otherwise).
>
> Thus I started writing my own editor with all text edit fields,
> buttons to add specific children, listeners to check when some field
> has changed to update the model... and essentially using just the
> model and model.impl. Then I started wondering if I am doing the right
> thing.
For that type of thing, I'd used data binding. Tom Schindl helped
provide EMF integration for that and did a series of interesting blogs
about it.
>
> Question is: is there a way to build a custom editor leveraging on the
> classes in model.edit and model.editor?
> If such a thing exists I didn't find a way to do it, but it seems it
> should, since otherwise all the effort spent in generating those
> packages seems a bit wasted.
The EEF project is useful for that:
http://www.eclipse.org/modeling/emft/?project=eef
>
> I am sure I don't understand something, but I'm still unsure about
> what it is, so the question is rather vague :(
>
> Can someone point me in the Right Direction, please?
>
> Thanks a lot in Advance (and also in retrospect for all the good work
> done!)
>
> Regards
> Mauro


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[CDO] 3.0 Standalone (spring wired) server and client example
Next Topic:monitoring the progress of loading resources
Goto Forum:
  


Current Time: Wed Apr 24 17:07:36 GMT 2024

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

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

Back to the top