Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EMF Commands vs GEF Commands
EMF Commands vs GEF Commands [message #832529] Fri, 30 March 2012 04:47 Go to next message
nicolas h is currently offline nicolas h
Messages: 47
Registered: February 2011
Location: Grenoble, France
Member
Hi there,
I follow this thread about the use of either EMF or GEF commands, and I'm a bit confused.

Today, I use RecordingCommand and subclasses. It's work with a TransactionalEditingDomain and the EMF CommandStack. Now, I develop GEF editors, which use, as I understand, their own command stack for GEF commands. GEF editors are parts of a multi-editor coupled with my TransactionalEditingDomain.

- Is it worth using GEF commands in lieu of the EMF commands ?
- Does the use of EMF commands is sufficient to edit a model inside a GEF graphical editor (add, remove, rename model elements, drag&drop from the palette, etc.)
- Are the GEF commands have funtionalities that EMF commands don't have ?
- Is there a comon way to combine both EMF and GEF commands ?
- Are the uses of GEF command and the EMF command stack + EMF TransactionalEditingDomain conflictual ?

Than you for your opinions,

Regards,

Nicolas
Re: EMF Commands vs GEF Commands [message #832790 is a reply to message #832529] Fri, 30 March 2012 11:41 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 24564
Registered: July 2009
Senior Member
Nicolas,

Comments below.

On 30/03/2012 4:47 AM, nicolas h wrote:
> Hi there,
> I follow http://www.eclipsezone.com/eclipse/forums/t46479.html about
> the use of either EMF or GEF commands, and I'm a bit confused.
You'll need EMF commands to work with EMF models...
>
> Today, I use RecordingCommand and subclasses. It's work with a
> TransactionalEditingDomain and the EMF CommandStack. Now, I develop
> GEF editors, which use, as I understand, their own command stack for
> GEF commands.
The saddest part is that they're a stripped down copy of the EMF ones
because GEF open sourced first...
> GEF editors are parts of a multi-editor coupled with my
> TransactionalEditingDomain.
>
> - Is it worth using GEF commands in lieu of the EMF commands ?
Maybe you should look into using GMF. If not, you'll want to look at
http://www.redbooks.ibm.com/abstracts/sg246302.html
> - Does the use of EMF commands is sufficient to edit a model inside a
> GEF graphical editor (add, remove, rename model elements, drag&drop
> from the palette, etc.)
They're sufficient for editing in any context.
> - Are the GEF commands have funtionalities that EMF commands don't have ?
No, more the opposite.
> - Is there a comon way to combine both EMF and GEF commands ?
See the redbook.
> - Are the uses of GEF command and the EMF command stack + EMF
> TransactionalEditingDomain conflictual ?
You'll need a single command stack.
>
> Than you for your opinions,
>
> Regards,
>
> Nicolas
Re: EMF Commands vs GEF Commands [message #834624 is a reply to message #832790] Mon, 02 April 2012 03:24 Go to previous message
nicolas h is currently offline nicolas h
Messages: 47
Registered: February 2011
Location: Grenoble, France
Member
Hi Ed,
Thank you, your comments comfort my decision to use EMF with GEF. I just was a bit afraid about eventual conflicts between GEF & EMF commands/command stack. Regarding to GMF I've already used it and it did'nt fit to my needs.

Thank for your reply,

Regards


--
Nicolas
Previous Topic:[Teneo][Hibernate] ClassCastException:
Next Topic:CheckboxTreeViewer data binding with EMF
Goto Forum:
  


Current Time: Sat May 25 13:19:53 EDT 2013

Powered by FUDForum. Page generated in 0.01752 seconds