8.1. Creating a standalone application setup for the visual interface (VI)

This tutorial creates a standalone Eclipse RCP application which contains:

You will need to have Java 7 or Java 8 and the Eclipse IDE installed. See Section 3.1.1.1, “Installing Java” and Section 3.1.1.2, “Installing Eclipse” for further information.

Also is a version of Apache Maven 3.x required in order to perform the actual client build. If is possible to use a standalone version or to use the m2eclipse Maven integration of Eclipse. Also see https://www.eclipse.org/m2e/.

If you want to run the client from the IDE itself, you will need to set up a target platform.

In order to install a nightly or milestone version of the Eclipse SCADA configurator you need to open the software installation dialog HelpInstall New Software and enter the appropriate URL into the Work with field and press enter. The URL will automatically be tested and added.

[Note]Note

If Eclipse asks for a restart at the end of the installation process, do perform a restart of the Eclipse IDE.

[Note]Note

Eclipse might warn you that the content is not signed when you install a nightly version. This is ok, since nightly versions do not get signed. Only milestone and release version will be signed.

The first step is to create a new project. Open the new project wizard using NewProject….

Select the Plug-in Project wizard, since we will create a new Eclipse RCP project. Press Next to continue.

Enter a project name. It is recommended to provide a hierarchical name, since the same name will be used for as package name. Press Next to continue.

Switch the option to create a new 3.x rich client application to Yes. Press Next to continue.

From the list of templates select the Eclipse SCADA Client Application template.

If you don't plan to set up a local master server, you can use the one provided at scada.eclipse.org. Finish the wizard by pressing the Finish button.

The wizard will now create a set of projects. First of all the RCP application project. Then a parent build project, which hosts overall build configurations. The a feature project which defines the target product content, and finally the product build project.

The full client build can be done with Maven Tycho. All the necessary files are already created by the wizard. You only need a working internet connection, or a way for maven to download the required artifacts.

First of all you can extend the application by editing the resources, add more visual elements provide more detail.

Second, it might be a good idea to split up the one module to multiple modules. The plugin.xml holds all references to the user interface elements, but this file can be split up and moved to a second plugin project. The new project is a simple Eclipse plugin project. In this case it is not a full rich client application.