| EMF Commands vs GEF Commands [message #832529] |
Fri, 30 March 2012 04:47  |
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   |
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  |
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
|
|
|
Powered by
FUDForum. Page generated in 0.01752 seconds