[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: integer arrays

It seems to me you should try to get EDataType for int[] and int[][] working
since that matches what you actually need in the Java API.


Ed,

Thank you very much for your speedy and very helpful reply.

I apologise for asking questions at such a basic level but I am having trouble finding documentation about how to use EDataType, I've tried seaching the web but I cant find any sort of tutorial that covers this. I'm planning to get the book "Eclipse Modeling Project: A Domain-Specific Language Toolkit" when it comes out, but in the meantime I'm a bit stuck.

I can use this to generate the code.

/**
* @model
*/
EList<EDataType> getIntArray();

But then I'm not sure where to modify the code to do the String->int and int->String conversions.
Can you recommend any online tutorials that would explain the structure of the generated code at the right level to help me.


Thanks again,

Martin