[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] Re: Adding elements to model

Too me this all continues to indicate that what was available at compile time is not the same as what's actually being used at runtime.


ingelin wrote:
Actually it seems to be a problem with adding elements to any relationship. In the textual editor created in TEF, I add a row with cells like this:
Row(1,2,3,4,5,6,7,8,9), the numbers beeing an int iCellValue in Cell.


I can access these cells in EMF like this:

Row row = (Row) ((EMFModelElement)modelElement).getEMFObject();
EList<Cell> cells = row.getCells();

and cells contains all cells from that row. However, if I try

row.cellsInRow.Add(somecell); the same error occurs as with puzzle.getElements() or puzzle.getElements().Add(someRow). However, puzzle.eContents().toString() will return a string with the 9 rows in the puzzle...

I am e really really confused!