Bug 284867 - Unify different CommandStack implementations in GEF, EMF and GMF
Summary: Unify different CommandStack implementations in GEF, EMF and GMF
Status: RESOLVED DUPLICATE of bug 125991
Alias: None
Product: GEF
Classification: Tools
Component: GEF-Legacy GEF (MVC) (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-28 10:35 EDT by Udo Walker CLA
Modified: 2009-07-29 10:13 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Udo Walker CLA 2009-07-28 10:35:33 EDT
I use GEF and EMF together. I want to use the generated EMF.edit classes in my project but I cannot because the CommandStack of GEF and the CommandStack of EMF are incompatible. 

In GEF the class CommandStack is a class, in EMF it is just an interface. Now to make it even worse if you try to add some features from the project GMF then you will see that GMF uses a totally different command processing which is based on the platform org.eclipse.core.commands plugin. 

All commands in each framework depend on their individual CommandStack implementation so you are not able to mix the commands. Also the editing domain is differently implemented. 

At the moment I implemented most of my commands by hand to be compatible with the GEF command stack.

What is your plan to improve the compatibility between the 3 projects GEF, EMF and GMF?
Comment 1 Anthony Hunter CLA 2009-07-28 16:19:32 EDT

*** This bug has been marked as a duplicate of bug 125991 ***
Comment 2 Anthony Hunter CLA 2009-07-28 16:21:12 EDT
(In reply to comment #0)
> What is your plan to improve the compatibility between the 3 projects GEF, EMF
> and GMF?

GMF has wrappers that make GEF and EMF commands become more or less GMF commands that support the standard Eclipse IOperationHistory framework.

There are no plans to change GEF, this is discussed in bug 125991 .

Comment 3 Udo Walker CLA 2009-07-29 01:29:23 EDT
Is there documentation how to use these GMF command wrappers with GEF? Is there a migration path from GEF+EMF to GEF+EMF.Edit+GMF?
Comment 4 Anthony Hunter CLA 2009-07-29 10:13:41 EDT
(In reply to comment #3)
> Is there documentation how to use these GMF command wrappers with GEF? Is there
> a migration path from GEF+EMF to GEF+EMF.Edit+GMF?
> 

This is a great question for the GMF newsgroup. If you google I am sure this question has been asked before.