Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 08:48 Go to next message
burkut  is currently offline burkut Friend
Messages: 13
Registered: November 2009
Junior Member
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 10:11]

Report message to a moderator

Re: how can i create an Instance of EList<Eobject>? [message #500194 is a reply to message #500160] Wed, 25 November 2009 10:41 Go to previous messageGo to next message
burkut  is currently offline burkut Friend
Messages: 13
Registered: November 2009
Junior Member
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 11:41 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
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?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: how can i create an Instance of EList<Eobject>? [message #500295 is a reply to message #500207] Wed, 25 November 2009 15:40 Go to previous messageGo to next message
burkut  is currently offline burkut Friend
Messages: 13
Registered: November 2009
Junior Member
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 15:50 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
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


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: how can i create an Instance of EList<Eobject>? [message #621612 is a reply to message #500207] Wed, 25 November 2009 15:40 Go to previous message
burkut  is currently offline burkut Friend
Messages: 13
Registered: November 2009
Junior Member
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 15:50 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
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


Ed Merks
Professional Support: https://www.macromodeling.com/
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: Fri Apr 19 16:50:21 GMT 2024

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

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

Back to the top