Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Problem with EList<EObject>
icon10.gif  Problem with EList<EObject> [message #1404629] Mon, 04 August 2014 14:54 Go to next message
Dat Nguyen is currently offline Dat NguyenFriend
Messages: 34
Registered: July 2014
Member
sorry, I found the answer.

[Updated on: Mon, 04 August 2014 16:42]

Report message to a moderator

Re: Problem with EList&lt;EObject&gt; [message #1404652 is a reply to message #1404629] Mon, 04 August 2014 17:41 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30553
Registered: July 2009
Senior Member
Dat,

Comments below.

On 04/08/2014 4:54 PM, Dat Nguyen wrote:
> Hi, I have a problem with EList.
> I want to get a list of EObject, so i initialize new EList and add
> EObject to this list like below:
>
> EList<EObjectType1> newList = null;
> EObjectType1 newMember = EObjectType2.getEObjectType1;
> newList.add(newMember);
>
> but newList still null.
Of course it's still null, that's all you've set it to. There's
org.eclipse.emf.common.util.BasicEList, the analog of
java.util.ArrayList, if you want a new EList instance.
> thanks for yours ideas.
Re: Problem with EList&lt;EObject&gt; [message #1404693 is a reply to message #1404652] Tue, 05 August 2014 06:57 Go to previous message
Dat Nguyen is currently offline Dat NguyenFriend
Messages: 34
Registered: July 2014
Member
thanks you.
Previous Topic:Problem Editing Model
Next Topic:KM3 Specification of an Ecore Model
Goto Forum:
  


Current Time: Tue Oct 22 21:58:30 GMT 2019

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

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

Back to the top