Skip to main content



      Home
Home » Eclipse Projects » GEF » Is there an API for Model => Editpart
Is there an API for Model => Editpart [message #226959] Mon, 27 November 2006 08:01 Go to next message
Eclipse UserFriend
Hi

how to find the EditPart of an model object in GEF?

greetings

Andreas
Re: Is there an API for Model => Editpart [message #226965 is a reply to message #226959] Mon, 27 November 2006 08:26 Go to previous messageGo to next message
Eclipse UserFriend
FreeGroup wrote:
> Hi
>
> how to find the EditPart of an model object in GEF?
>
> greetings
>
> Andreas
Note: I need them recursiv.

getViewer().getEditPartRegistry(); doesn't return child editparts.
Re: Is there an API for Model => Editpart [message #226985 is a reply to message #226965] Mon, 27 November 2006 11:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: divis1969.mail.ru

Usually, EditPartFactory is used to map Model to EditPart.

"FreeGroup" <a.herz@FreeGroup.de> wrote in message
news:ekep4h$sq0$1@utils.eclipse.org...
> FreeGroup wrote:
>> Hi
>>
>> how to find the EditPart of an model object in GEF?
>>
>> greetings
>>
>> Andreas
> Note: I need them recursiv.
>
> getViewer().getEditPartRegistry(); doesn't return child editparts.
>
Re: Is there an API for Model => Editpart [message #226999 is a reply to message #226985] Mon, 27 November 2006 16:08 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

the factory creates new objects. It doesn't map a model element
to a existing edit part.

greetings

andreas


Dmitry Smirnov wrote:
> Usually, EditPartFactory is used to map Model to EditPart.
>
> "FreeGroup" <a.herz@FreeGroup.de> wrote in message
> news:ekep4h$sq0$1@utils.eclipse.org...
>> FreeGroup wrote:
>>> Hi
>>>
>>> how to find the EditPart of an model object in GEF?
>>>
>>> greetings
>>>
>>> Andreas
>> Note: I need them recursiv.
>>
>> getViewer().getEditPartRegistry(); doesn't return child editparts.
>>
>
>
Re: Is there an API for Model => Editpart [message #227022 is a reply to message #226999] Mon, 27 November 2006 22:59 Go to previous message
Eclipse UserFriend
Originally posted by: eric.services.ideoform.org

On the surface, it seems like you could just add a map to your factory
and a method to get the edit part it created for that model element.

FreeGroup wrote:
> Hi,
>
> the factory creates new objects. It doesn't map a model element
> to a existing edit part.
>
> greetings
>
> andreas
>
>
> Dmitry Smirnov wrote:
>> Usually, EditPartFactory is used to map Model to EditPart.
>>
>> "FreeGroup" <a.herz@FreeGroup.de> wrote in message
>> news:ekep4h$sq0$1@utils.eclipse.org...
>>> FreeGroup wrote:
>>>> Hi
>>>>
>>>> how to find the EditPart of an model object in GEF?
>>>>
>>>> greetings
>>>>
>>>> Andreas
>>> Note: I need them recursiv.
>>>
>>> getViewer().getEditPartRegistry(); doesn't return child editparts.
>>>
>>
>>
Previous Topic:Preventing GEF from discovering chidren of a model
Next Topic:Allow unique instance of figures
Goto Forum:
  


Current Time: Wed May 14 02:05:07 EDT 2025

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

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

Back to the top