Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 13:01 Go to next message
Andreas Herz is currently offline Andreas HerzFriend
Messages: 196
Registered: July 2009
Senior Member
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 13:26 Go to previous messageGo to next message
Andreas Herz is currently offline Andreas HerzFriend
Messages: 196
Registered: July 2009
Senior Member
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 16: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 21:08 Go to previous messageGo to next message
Andreas Herz is currently offline Andreas HerzFriend
Messages: 196
Registered: July 2009
Senior Member
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] Tue, 28 November 2006 03: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: Sat Apr 20 03:06:20 GMT 2024

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

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

Back to the top