Skip to main content



      Home
Home » Modeling » EMF » Problem with EList<EObject>
icon10.gif  Problem with EList<EObject> [message #1404629] Mon, 04 August 2014 10:54 Go to next message
Eclipse UserFriend
sorry, I found the answer.

[Updated on: Mon, 04 August 2014 12:42] by Moderator

Re: Problem with EList&lt;EObject&gt; [message #1404652 is a reply to message #1404629] Mon, 04 August 2014 13:41 Go to previous messageGo to next message
Eclipse UserFriend
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 02:57 Go to previous message
Eclipse UserFriend
thanks you.
Previous Topic:Problem Editing Model
Next Topic:KM3 Specification of an Ecore Model
Goto Forum:
  


Current Time: Sun Apr 20 19:37:14 EDT 2025

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

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

Back to the top