getting_started.html 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?xml version='1.0' encoding='utf-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  5. <title>getting_started</title>
  6. <link type="text/css" rel="stylesheet" href="../style.css"/>
  7. </head>
  8. <body>
  9. <h1 id="DeveloperGettingstarted">Developer Getting started</h1>
  10. <h2 id="YakinduXpandGeneratorProject">Yakindu Xpand Generator Project</h2>
  11. <p>In the context of model driven software development generators play an important role. The generator transforms the model to either another model or text like code. Yakindu generators support multiple transform languages. One is Xpand. By clicking
  12. <strong>File</strong> &gt;
  13. <strong>New</strong> &gt;
  14. <strong>Other...</strong> &gt;
  15. <strong>YAKINDU Xpand Generator Project</strong> you create a project optimized for writing a generator in Xpand. For more details regarding Xpand see:
  16. <a href="PLUGIN_ROOT/org.eclipse.xpand.doc/help/index.html">Xpand documentation</a>.
  17. </p>
  18. <p>
  19. <img border="0" src="images/new_xpand_project_simple.jpg"/>
  20. </p>
  21. <p>All you need to do is to give it a speaking name and click
  22. <strong>Finish</strong>. The setting
  23. <strong>Configure for Plugin Export</strong> is an option for plugin developers.
  24. </p>
  25. <p>The newly created project has a package with an Xpand starting point: the
  26. <em>Main.xpt</em>. This file the includes the needed metamodels. It has the entrance Xpand statement that iterates all states in the model and prints the names in a text file.
  27. </p>
  28. <h2 id="YakinduXtend2JavaGeneratorProject">Yakindu Xtend2/Java Generator Project</h2>
  29. <p>The generator that transforms the state machine model into code or documentation can be written in Xtend2 and Java. Find a detailed description on Xtend2 in the
  30. <a href="PLUGIN_ROOT/org.eclipse.xtext.doc/contents/01-Xtend_Introduction.html">Xtend2 documentation</a>. Yakindu comes with a predefined project setting for such projects. To create such a project click
  31. <strong>File</strong> &gt;
  32. <strong>New</strong> &gt;
  33. <strong>Other...</strong> &gt;
  34. <strong>YAKINDU Xtend2/Java Generator Project</strong>.
  35. </p>
  36. <p>
  37. <img border="0" src="images/new_java_xtend_project.jpg"/>
  38. </p>
  39. <p>Give the project a speaking full qualified name and name also the generator java class with a full qualified name. If you also want to use Xtend select
  40. <strong>Use Xtend</strong>. The result is a new project with an initial Xtend file and java class.
  41. </p>
  42. </body>
  43. </html>