Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » how to Bridge GEF with EMF
how to Bridge GEF with EMF [message #209610] Fri, 17 February 2006 06: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 16:52 Go to previous messageGo to next message
Didier Villevalois is currently offline Didier VillevaloisFriend
Messages: 86
Registered: July 2009
Member
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 14: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 13:45 Go to previous message
kiril mitov is currently offline kiril mitovFriend
Messages: 128
Registered: July 2009
Senior Member
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:ConnectionAnchor for Triangle-Figure
Next Topic:XYLayoutEditPolicy
Goto Forum:
  


Current Time: Wed Nov 30 03:35:41 GMT 2022

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

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

Back to the top