Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Efxclipse/Tutorials/Tutorial4"

(Create an e4 application with a full-blown project structure)
(Create an e4 application with a full-blown project structure)
Line 16: Line 16:
 
<li><b>Optional: </b> To unit test your application using Jemmy
 
<li><b>Optional: </b> To unit test your application using Jemmy
 
<ol>
 
<ol>
<li>Add http://downloads.efxclipse.org/efxclipse.bestsolution.at/p2-repos/runtime/nightly/site/ as a site</li>
+
<li>Add http://downloads.efxclipse.bestsolution.at/p2-repos/addons/nightly/site/ as a site</li>
 
<li>Select the JUnit-Testing root node</li>
 
<li>Select the JUnit-Testing root node</li>
 
</ol>
 
</ol>
Line 29: Line 29:
 
<li>On the first wizard page, enter a prefix for your application and leave the rest of the settings on their defaults. <br />
 
<li>On the first wizard page, enter a prefix for your application and leave the rest of the settings on their defaults. <br />
 
[[Image:efxclipse_tut4_3.png]]</li>
 
[[Image:efxclipse_tut4_3.png]]</li>
<li>On the 2nd page enter a product name and leave the rest as is so the wizard generates tycho build fragments, jemmy-junit tests and other bundles<br /> <b>Remark: </b> The jemmy-junit option is only enabled if you added JUnit-Testing features from http://downloads.efxclipse.org/efxclipse.bestsolution.at/p2-repos/runtime/nightly/site/ to your target platform<br />
+
<li>On the 2nd page enter a product name and leave the rest as is so the wizard generates tycho build fragments, jemmy-junit tests and other bundles<br /> <b>Remark: </b> The jemmy-junit option is only enabled if you added JUnit-Testing features from http://downloads.efxclipse.bestsolution.at/p2-repos/addons/nightly/site/ to your target platform<br />
 
[[Image:efxclipse_tut4_4.png]]</li>
 
[[Image:efxclipse_tut4_4.png]]</li>
 
<li>The wizard creates six bundles: the main bundle, a feature bundle, a product bundle, a JemmyFX test bundle and Jemmy feature, and a releng bundle. <br />
 
<li>The wizard creates six bundles: the main bundle, a feature bundle, a product bundle, a JemmyFX test bundle and Jemmy feature, and a releng bundle. <br />

Revision as of 11:16, 22 October 2013

Create an e4 application with a full-blown project structure

When developing OSGi applications, one question will inevitably come up: how do I structure my OSGi bundles? This tutorial guides you through the steps required to create a JavaFX e4 application with a pre-defined bundle structure that aims for decoupling and minimal dependencies. For details about this structure, see ​Tom's blog post.


  1. Setup a target platform for your application development:
    1. Open Preferences > Plugin-in Development > Target Platform
    2. Click Add ...
    3. Select "Nothing: Start with an empty target definition".
    4. Add ...
    5. Select Software Site
    6. Add ​http://download.eclipse.org/efxclipse/runtime-nightly/site as a site.
    7. Expand "FX Target" and check "Target Platform for Eclipse" and uncheck "Include required software"
    8. Optional: To unit test your application using Jemmy
      1. Add http://downloads.efxclipse.bestsolution.at/p2-repos/addons/nightly/site/ as a site
      2. Select the JUnit-Testing root node
    9. Finish and activate the new target.


    Efxclipse tut3 1.png

  2. Run the New > Project ... JavaFX/OSGi/e4 Application projects wizard.
    Efxclipse tut4 2.png
  3. On the first wizard page, enter a prefix for your application and leave the rest of the settings on their defaults.
    Efxclipse tut4 3.png
  4. On the 2nd page enter a product name and leave the rest as is so the wizard generates tycho build fragments, jemmy-junit tests and other bundles
    Remark: The jemmy-junit option is only enabled if you added JUnit-Testing features from http://downloads.efxclipse.bestsolution.at/p2-repos/addons/nightly/site/ to your target platform
    Efxclipse tut4 4.png
  5. The wizard creates six bundles: the main bundle, a feature bundle, a product bundle, a JemmyFX test bundle and Jemmy feature, and a releng bundle.
    Efxclipse tut4 5.png
  6. Fill your application with life by configuring the Application.e4xmi and adding your source code.
  7. Start your application by open the context menu on $appname.app.product.launch
    Efxclipse tut4 6.png

Back to the top