Skip to main content



      Home
Home » Eclipse Projects » GEF » emf/gef commands
emf/gef commands [message #115456] Tue, 03 February 2004 13:12 Go to next message
Eclipse UserFriend
Originally posted by: david_michonneau.hotmail.com

Hi,

I am trying to build a GEF editor, with an EMF model. Since I also have some
JFace editors, I would like to use the EMF.Edit generated classes. The issue
is that the GEF commands and EMF commands belong to different packages,
although they have a very similar interface.

I know that Jeez implemented a solution with wrapper classes to mix GEF and
EMF commands, but I am not totally convinced by this.

So my question is: is it possible to use EMF.Edit, and override all the
generated commands (and basic commands) to produce my own GEF commands
instead? If yes, how to override them?

Thanks,

David
Re: emf/gef commands [message #117225 is a reply to message #115456] Wed, 11 February 2004 20:46 Go to previous message
Eclipse UserFriend
David,

I don't think you can do it by overriding the generated EMF commands since
the GEF framework expects the GEF commands to inherit from
org.eclipse.gef.commands.Command. There is no GEF command interface you can
make subclasses of the EMF commands implement. I got GEF and EMF commands
working together by having my GEF commands delegate to EMF commands. My GEF
editor only ever deals with GEF commands (which happen to use EMF commands
to get the job done), so in effect I am wrappering, but not in the same way
as the Jeez implementation (I think). Make sense?

Sean.

"David Michonneau" <david_michonneau@hotmail.com> wrote in message
news:bvoo5s$bdt$1@eclipse.org...
> Hi,
>
> I am trying to build a GEF editor, with an EMF model. Since I also have
some
> JFace editors, I would like to use the EMF.Edit generated classes. The
issue
> is that the GEF commands and EMF commands belong to different packages,
> although they have a very similar interface.
>
> I know that Jeez implemented a solution with wrapper classes to mix GEF
and
> EMF commands, but I am not totally convinced by this.
>
> So my question is: is it possible to use EMF.Edit, and override all the
> generated commands (and basic commands) to produce my own GEF commands
> instead? If yes, how to override them?
>
> Thanks,
>
> David
>
>
>
Previous Topic:NoClassDefFoundError
Next Topic:GEF or SWT-Designer (newbie question)
Goto Forum:
  


Current Time: Sat May 31 18:48:59 EDT 2025

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

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

Back to the top