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

Yannick wrote:
Well I'd like to store information for further use. For example when
parsing a UML2 file containing associations between class, I need to
first parse associations then classes (since associations in my file are
not nested in uml class element).

In fact I did it with a static variable inside a java extension but I
wanted to know how this could be done with oAW.

You don't need to store such informations, just define an extension (containing your expression) and invoke it each time you need the information.
If you are worrying about performance use the 'cached' keyword. It garantees that the expression is only evaluated once for each Class instance.


regards,
Sven