A Simple Example

To illustrate the creation and use of platform bindings for Democles Systems, we provide the example of a simple Web Browser which provides basic navigation functions.

Importing the Example Project

Having installed Democles, download the Browser example:

Browser-example.zip (111 kB)

Import it into your workspace by choosing File→Import..., then selecting the General→Existing Project into Workspace option. After selecting the downloaded project archive and clicking Finish, the project will be available in the workspace.

The Browser

The browser example contains the models of a very basic browser application, as well as platform bindings for two platforms:

Running the Browser with Swing Platform Bindings

After the example project has been imported, it is already configured to run using Swing Platform Bindings. To run it, open the context menu of the Browser project and choose Run As→Democles System.

The Browser window will look like this:

Running the Browser with SWT Platform Bindings

To be able to run the Browser example using SWT platform bindings, first the appropriate SWT implementation for your Operating System must be added to the classpath of the Project:

Finally, the SWT Platform Binding must be activated for the Browser project:

To run the Browser, open the context menu of the Browser project and choose Run As→Democles System.

The Browser window will look like this: