Setting Up an Eclipse SmartHome Development Environment
Please ensure that you have the following prerequisites installed on your machine:
The Eclipse IDE is used for Eclipse SmartHome developments. The Eclipse Installer automatically prepares the IDE so that it comes with all required plug-ins, the correct workspace encoding settings, pre-configured code formatters and more. Simply follow these steps:
- Download the Eclipse Installer
- Launch the Eclipse Installer and switch to „Advanced Mode“ in the top right menu:
- Choose the “Eclipse IDE for Java Developers” and select “Next”:
- Expand the “SmartHome” entry, double click “Runtime” and select “Next”:
- Now provide an installation folder and your Github id (used to push your changesets to) and select “Next”:
- The installation will now begin when pressing “Finish”.
- Once it is done, you will see the Eclipse Welcome Screen, which you can close by clicking “Workbench” on the top right. You will see that the installer not only set up an Eclipse IDE instance for you, but also checked out the Eclipse SmartHome git repository and imported all projects into the workspace. Don’t worry that you still see error markers at that point, this will be addressed in the next steps.
- Wait until all automatic tasks have been finished (see status field bottom left). After that select “Help->Perform Setup Tasks…” from the menu and click “Finish”:
- Your workspace should now fully compile and you can start the runtime by launching the “SmartHome Runtime” launch configuration:
- Note: The Paper UI and Basic UI have been built by “Perform Setup Tasks…”. It could be necessary to repeat that step after code has been changed. Access the Paper UI at http://localhost:8080/paperui/index.html. For more information about Paper UI see Paper UI Development.
Note that you will find the sources in a subfolder called “git” within your selected installation folder. You can use any kind of git client here, if you do not want to use the git support from within the Eclipse IDE. If you want to push changes, you need to do so to your personal fork of the Eclipse SmartHome repository in order to create a pull request. You will find more details in the “How to contribute” documentation.