Skip to main content



      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 06:36 Go to next message
Eclipse UserFriend
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 08:42 Go to previous messageGo to next message
Eclipse UserFriend
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 08:53 Go to previous messageGo to next message
Eclipse UserFriend
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 17:46 Go to previous message
Eclipse UserFriend
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: Thu Jul 03 21:12:25 EDT 2025

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

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

Back to the top