Using Jet Transformation with EMF documents [message #66698] |
Fri, 05 January 2007 12:15 |
Eclipse User |
|
|
|
Originally posted by: lakshmi.dnarayana.yahoo.com
Hi,
Can anyone please tell me what does the following mean in the
help.eclipse.org/emft JET developer site:
<%-- contents of main.jet that reads handles a .ecore file --%>
<%-- import the ecore namespace --%>
<%@jet imports="org.eclipse.emf.ecore.*"%>
<c:setVariable var="ePackage" select="/contents"/>
<%-- write to the JET execution console --%>
<c:log>
EPackage: <c:get select="$ePackage/@name"/>
<c:iterate select="$ePackage/eClassifiers" var="eClassifier">
<%
EClassifier ec = (EClassifier)context.getVariable("eClassifier");
%>
EClassifier: <c:get select="$eClassifier/@name"/>. Really it's <%=
ec.getName() %>
</c:iterate>
</c:log>
I have not been able to find a way to load an ecore model and browse the way
they have specified.
Thanks,
LN
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03722 seconds