Skip to main content



      Home
Home » Eclipse Projects » GEF » Lost in EditParts/Viewers/Models
Lost in EditParts/Viewers/Models [message #120497] Thu, 04 March 2004 04:51 Go to next message
Eclipse UserFriend
I'm new in Eclipse and I'm lost in the terms of EditParts/Viewers/Models
and
I'm missing something "obvious".
As in the Flow example I know that I must attach the model to the editPart
in
ActivityPartFactory::createEditPart(EditPart context, Object model). But
"where" do I call this method?
please help me.
Re: Lost in EditParts/Viewers/Models [message #120604 is a reply to message #120497] Thu, 04 March 2004 12:03 Go to previous message
Eclipse UserFriend
"kiko" <kiril_mitov@abv.bg> wrote in message
news:c26u67$vpc$1@eclipse.org...
> I'm new in Eclipse and I'm lost in the terms of EditParts/Viewers/Models
> and
> I'm missing something "obvious".
> As in the Flow example I know that I must attach the model to the editPart
> in
> ActivityPartFactory::createEditPart(EditPart context, Object model). But
> "where" do I call this method?

You don't invoke it yourself. You set the EditPartFactory on the viewer.
Then, when the contents are provided to the viewer, the viewer will use the
factory to create EditParts for the provided model objects.

> please help me.
>

For more information:
http://publib-b.boulder.ibm.com/redbooks.nsf/RedpieceAbstrac ts/sg246302.html?Open
Previous Topic:Make GEF and EMF work together?
Next Topic:How to determine the state of the Control Key
Goto Forum:
  


Current Time: Sat Jun 07 21:03:10 EDT 2025

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

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

Back to the top