
You can add SAPUI5-specific code parts, so called SAPUI5 Snippets. Code snippets are templates and examples on how to use the SAPUI5 runtime and controls and what can be done with them. SAPUI5 snippets are available as prepared HTML pages with no separation between model, view and, controller (MVC) and they are generated during startup of the Eclipse runtime.
Before you can use the SAPUI5 snippets, the SAPUI5 application development tools must be installed in your Eclipse.
To open the Snippets view, proceed as follows:
To insert a snippet, proceed as follows:
Open the index.html in the HTML editor.
Delete all content.
To insert the snippet code, double click on the snippet or use drag&drop.
Save the code and run it in the integrated browser.
If you have problems with incorrect rendered pages, open the default external browser.
The page should then be displayed correctly: