Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » how can i create an Instance of EList<Eobject>?
how can i create an Instance of EList<Eobject>? [message #500160] Wed, 25 November 2009 03:48 Go to next message
Eclipse UserFriend
hallo,

i can always get the Return value of the Type Elist<Eobject>, but i could not create it in normal way (with new)? is there any other wy?

second Quetion:
how can i realize the Delegate Concept in EMF? is the eNotify( ) helpful in this mean? do you have any Experience about it?

Thank you

Burkut

[Updated on: Wed, 25 November 2009 05:11] by Moderator

Re: how can i create an Instance of EList<Eobject>? [message #500194 is a reply to message #500160] Wed, 25 November 2009 05:41 Go to previous messageGo to next message
Eclipse UserFriend
i have solved the first Problem by myself. f.e.

public EList<Node> myQueue = new BasicEList<Node>();


Can anyboby help me to understand second Problem that i posted. The Delegates in EMF? how can i do it?
Re: how can i create an Instance of EList<Eobject>? [message #500207 is a reply to message #500194] Wed, 25 November 2009 06:41 Go to previous messageGo to next message
Eclipse UserFriend
Burkut,

It's best to ask questions like this in the EMF newsgroup rather than
the EMFT one.

I'm not sure what you're trying to delegate from and to.
Notifier/Adapter are part of the observer pattern.


burkut wrote:
> i have solved the first Problem by myself. f.e.
>
> public EList<Node> myQueue = new BasicEList<Node>();
>
>
> Can anyboby help me to understand second Problem that i posted. The
> Delegates in EMF? how can i do it?
Re: how can i create an Instance of EList<Eobject>? [message #500295 is a reply to message #500207] Wed, 25 November 2009 10:40 Go to previous messageGo to next message
Eclipse UserFriend
Quote:
It's best to ask questions like this in the EMF newsgroup rather than
the EMFT one.

am i wrong hier with my Topic?

f.e. in my Model there are many Graphs( there are only Nodes and Edges which have bidirektional containment Relationship). These Graphs have close Relationships each other. So separate one Graph from these Graphs and try to modify it. meanwhile i want to send other Graphs a change Message, so that let they know it was something changed hier.

can i delegate this Message in EMF?

Thank you
Re: how can i create an Instance of EList<Eobject>? [message #500313 is a reply to message #500295] Wed, 25 November 2009 10:50 Go to previous message
Eclipse UserFriend
Burkut,

Comments below.

burkut wrote:
> Quote:
>> It's best to ask questions like this in the EMF newsgroup rather than
>> the EMFT one.
>
> am i wrong hier with my Topic?
It's not about right and wrong. You're asking questions about EMF's core
runtime, not about any of the EMFT components, and questions like that
are bertter better on the EMF newsgroup.
> f.e. in my Model there are many Graphs( there are only Nodes and
> Edges which have bidirektional containment Relationship). These
> Graphs have close Relationships each other. So separate one Graph from
> these Graphs and try to modify it. meanwhile i want to send other
> Graphs a change Message, so that let they know it was something
> changed hier.
>
> can i delegate this Message in EMF?
Yes, you can add an adapter to the eAdapters list of any
Notifier/EObject and then receive Notifications about all changes that
happen to that object.
>
> Thank you
Re: how can i create an Instance of EList<Eobject>? [message #621612 is a reply to message #500207] Wed, 25 November 2009 10:40 Go to previous message
Eclipse UserFriend
Quote:
> It's best to ask questions like this in the EMF newsgroup rather than
> the EMFT one.

am i wrong hier with my Topic?

f.e. in my Model there are many Graphs( there are only Nodes and Edges which have bidirektional containment Relationship). These Graphs have close Relationships each other. So separate one Graph from these Graphs and try to modify it. meanwhile i want to send other Graphs a change Message, so that let they know it was something changed hier.

can i delegate this Message in EMF?

Thank you
Re: how can i create an Instance of EList<Eobject>? [message #621613 is a reply to message #621612] Wed, 25 November 2009 10:50 Go to previous message
Eclipse UserFriend
Burkut,

Comments below.

burkut wrote:
> Quote:
>> It's best to ask questions like this in the EMF newsgroup rather than
>> the EMFT one.
>
> am i wrong hier with my Topic?
It's not about right and wrong. You're asking questions about EMF's core
runtime, not about any of the EMFT components, and questions like that
are bertter better on the EMF newsgroup.
> f.e. in my Model there are many Graphs( there are only Nodes and
> Edges which have bidirektional containment Relationship). These
> Graphs have close Relationships each other. So separate one Graph from
> these Graphs and try to modify it. meanwhile i want to send other
> Graphs a change Message, so that let they know it was something
> changed hier.
>
> can i delegate this Message in EMF?
Yes, you can add an adapter to the eAdapters list of any
Notifier/EObject and then receive Notifications about all changes that
happen to that object.
>
> Thank you
Previous Topic:how can i get an create an Instance of EList<Eobject>?
Next Topic:Editor is not an ITextEditor error
Goto Forum:
  


Current Time: Mon Jul 07 01:13:34 EDT 2025

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

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

Back to the top