Skip to main content



      Home
Home » Eclipse Projects » GEF » how to Bridge GEF with EMF
how to Bridge GEF with EMF [message #209610] Fri, 17 February 2006 01:15 Go to next message
Eclipse UserFriend
Originally posted by: onlymohabbat.yahoo.com

I have drawn a diagram using GEF now i want to use the property sheet
generated by model through EMF.
Is there any example available on that (or)
can any one suggest me how do we do that ?

Thanks
Joseph
Re: how to Bridge GEF with EMF [message #209618 is a reply to message #209610] Fri, 17 February 2006 11:52 Go to previous messageGo to next message
Eclipse UserFriend
Jospeh,

Maybe, you should look at the GMF stuff. They put the EMF models'
properties in the new core property sheet.

Didier.

Joseph wrote:
> I have drawn a diagram using GEF now i want to use the property sheet
> generated by model through EMF.
> Is there any example available on that (or)
> can any one suggest me how do we do that ?
>
> Thanks
> Joseph
>
Re: how to Bridge GEF with EMF [message #209626 is a reply to message #209610] Fri, 17 February 2006 09:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

If you are using GEF, it is easier to write the propertysource
implementation by hand. You could also consider using the new tabbed
properties view in platform M5.

"Joseph " <onlymohabbat@yahoo.com> wrote in message
news:6c172706f50be35dc38171fcf2912865$1@www.eclipse.org...
>I have drawn a diagram using GEF now i want to use the property sheet
>generated by model through EMF.
> Is there any example available on that (or)
> can any one suggest me how do we do that ?
>
> Thanks
> Joseph
>
Re: how to Bridge GEF with EMF [message #209951 is a reply to message #209610] Tue, 21 February 2006 08:45 Go to previous message
Eclipse UserFriend
In the generated editor you have a method called getPropertySheetPage().
Try to replace it with this one:

public IPropertySheetPage getPropertySheetPage() {
if (fPropertySheetPage == null) {
fPropertySheetPage = new PropertySheetPage();
UndoablePropertySheetEntry rootEntry = new
UndoablePropertySheetEntry(getCommandStack());
rootEntry.setPropertySourceProvider(new
MyPartsContentProvider(fAdapterFactory));
fPropertySheetPage.setRootEntry(rootEntry);
}

return fPropertySheetPage;
}
Previous Topic:How can I slant the figure ?
Next Topic:Reload editor contents when changed outside editor
Goto Forum:
  


Current Time: Sun Jul 27 08:14:44 EDT 2025

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

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

Back to the top