[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.technology.gmt] Re: oaw: beginner questions

Hi Yannick,

I think I don't understand what your problem is.
You are talking about a code generator based on Xpand, aren't you?
What do you mean by "parsing" associations and classes?
Why don't you write everything to the FILE the first time you open it?

regards,
Sven

Yannick wrote:
Well, in my .uml2 file, associations are siblings of classes or
interfaces. Each association (2 ends) affect 2 class/interface. And I
create one java file for each class/interface.

Then if I parse associations after parsing classes and interfaces, I
don't know how to open the wanted file for each association-end and then
add information inside it (FILE only creates a new file it seems).

So what I did was to parse associations first, store information and
then fetch it when the class/interface computed is part of an
association-end. That way I can add association information in correct
java file.


If you have a better solution I'll be glad to hear it. :)