Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Getting started with EMF, a few newbie questions
Getting started with EMF, a few newbie questions [message #759619] Tue, 29 November 2011 11:36 Go to next message
Roded Bahat is currently offline Roded BahatFriend
Messages: 152
Registered: August 2011
Senior Member
Hello,
I'm getting started using EMF in order to create a proprietary editor for an XML schema.
My ambitions are:

  • Adding a source tab to the generated editor (and maybe removing some of the default tabs).
  • Changing the behavior of the element TreeViewer so that empty container elements not be visible (and of course, changing the behavior of the adding operations so that those same container elements are generated automatically).
  • Using my own widgets for viewing and editing some types of elements.

I'd like to make sure this is all possible by customizing EMF's editor and that it is recommended to work in this way.
What would happen after customization when the model would need changes (and the editor regeneration)?
I'd very much appreciate any pointers.
Thanks a lot,
Roded
Re: Getting started with EMF, a few newbie questions [message #759650 is a reply to message #759619] Tue, 29 November 2011 13:42 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Not answering your question but did you looked at
http://www.eclipse.org/sapphire/

Tom

Am 29.11.11 12:36, schrieb Roded:
> Hello,
> I'm getting started using EMF in order to create a proprietary editor
> for an XML schema.
> My ambitions are:
>
> Adding a source tab to the generated editor (and maybe removing some of
> the default tabs).
> Changing the behavior of the element TreeViewer so that empty container
> elements not be visible (and of course, changing the behavior of the
> adding operations so that those same container elements are generated
> automatically).
> Using my own widgets for viewing and editing some types of elements.
>
> I'd like to make sure this is all possible by customizing EMF's editor
> and that it is recommended to work in this way.
> What would happen after customization when the model would need changes
> (and the editor regeneration)?
> I'd very much appreciate any pointers.
> Thanks a lot,
> Roded
Re: Getting started with EMF, a few newbie questions [message #759652 is a reply to message #759619] Tue, 29 November 2011 13:53 Go to previous messageGo to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
Hi,

Some suggestions:

1. The generated editor is a multi page editor, you could go to the method createPages() to modify at will.
2 You could have a filter on the TreeViewer to do as you like. Note: treeviewer filtering can be tricky to implement, but there is a lot of info "out there". The Create child and sibbling actions can be tuned in various ways, like in the [Object]ItemProvider generated in the
.edit plugin
3. Oh, yes possibilities are endless. you will have a lot of fun (and frustration) for sure Smile

Don't forget to add NOT after the @generated annotation, so you can regenerate. (Or rename the generated method).

Cheers Christophe


Re: Getting started with EMF, a few newbie questions [message #759771 is a reply to message #759652] Tue, 29 November 2011 22:46 Go to previous message
Roded Bahat is currently offline Roded BahatFriend
Messages: 152
Registered: August 2011
Senior Member
Sapphire looks promising, though I do suspect I'd like to use my own widgets (content assist) in the property editors at some point. Is this possible via the Sapphire Extension System? Guess I'll ask them.

Quite intimidating this EMF.

Thanks for the help!
Roded
Previous Topic:[Resolved] - EMF / JFace howto do a 'double' databinding
Next Topic:[CDO] NPE in GMF notation caused by CoreTypeMappings$TMCustom.getDefaultValue
Goto Forum:
  


Current Time: Tue Apr 23 15:45:35 GMT 2024

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

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

Back to the top