title: How to use Java Emitter Template (JET) to generate Java code from a a .xmi file created based on an EMF model
body: <p>So, here is my problem, I have an Eclipse EMF project, and i have built a model, generated the corresponding code, and also programmed some framework classes by hand, that correspond to the model.</p>
  
  <p>I have used the eclipse wizard to adapt the project to a Java Emitter Template (JET) Transformation project (and noticed that this did not generate the same configurations in the MANIFEST, that a JET Project created from scratch, does...)</p>
  
  <p>I have created a JET file that creates a Java class to generate the code for the main class of the application, based on the input that goes into "argument".</p>
  
  <p>Then I have created a Dynamic instance, and populated the created .xmi file with some nodes according to the model.</p>
  
  <p>Now what I did was to create a JET Transformation running configuration, and i am trying to pass as input the .xmi file, and use onee of the only two things available in the Transformation ID combo box...</p>
  
  <p>If I select Transformation ID to be jet2, I get this output in console:</p>
  
  <pre><code>templates/main.jet(8,1):  &lt;c:setVariable var='org.eclipse.jet.taglib.control.iterateSetsContext' select='true()'&gt;
      Trace: completed action. 
  templates/main.jet(29,1):  &lt;c:if test='isVariableDefined(''org.eclipse.jet.resource.project.name'')'&gt;
      Trace: processing body
  templates/dump.jet(2,1):  &lt;c:dump select='/*' format='true' entities='true'&gt;
      Trace: completed action. 
  templates/main.jet(30,5):  &lt;ws:file template='templates/dump.jet' path='{$org.eclipse.jet.resource.project.name}/dump.xml'&gt;
      Trace: completed action. 
  Successful Execution
  </code></pre>
  
  <p>And if instead, I select Transformation ID to be org.eclipse.jet.transforms.taglib.doc (the only available other option), I get:</p>
  
  <pre><code>templates/control.jet(8,1):  &lt;c:setVariable var='jetPluginNS' select='''org.eclipse.jet'''&gt;
      Trace: completed action. 
  templates/control.jet(9,1):  &lt;c:setVariable var='tagLibrariesXP' select='concat($jetPluginNS, ''.tagLibraries'')'&gt;
      Trace: completed action. 
  templates/control.jet(15,1):  &lt;c:setVariable var='pluginNS' select='$org.eclipse.jet.resource.project.name'&gt;
      Trace: completed action. 
  templates/control.jet(16,1):  &lt;c:setVariable var='docPlugin' select='concat($org.eclipse.jet.resource.project.name, ''.doc'')'&gt;
      Trace: completed action. 
  templates/control.jet(21,5):  &lt;c:iterate select='/plugin/extension[@point = $tagLibrariesXP]' var='extension'&gt;
      Trace: loop initialized
  templates/control.jet(21,5):  &lt;c:iterate select='/plugin/extension[@point = $tagLibrariesXP]' var='extension'&gt;
      Trace: finished loop
  templates/control.jet(69,5):  &lt;c:iterate select='/plugin/extension[@point = $tagLibrariesXP]' var='extension'&gt;
      Trace: loop initialized
  templates/control.jet(69,5):  &lt;c:iterate select='/plugin/extension[@point = $tagLibrariesXP]' var='extension'&gt;
      Trace: finished loop
  Successful Execution
  </code></pre>
  
  <p>In either case, I dont get any generated Java class out of the generate method, and yet both say they are successful... also, by the console messages in first case, I see that a dump.xml file is generated with a kind of xmi to xml translation of that file, but without any association to Java or any of the methods i defined to be created in the JET generation class...</p>
  
  <p>Also, if after generating the dump.xml file mentioned, i try to use it as input, it tells me that my Application object is not found or is abstract. In fact the one from the generated package is indeed an interface, but even if i try to use the Impl one i get the same error, and i dont even know if it is acting correctly because of all this procedure i took to get to this dump.xml file.</p>
  
  <p>What am I doing wrong? can anyone please help me?</p>
  
  <p>Thanks in advance!</p>