Application Integration

Although XWT is bundled in e4, it is in fact designed, developed and tested in classic eclipse environment. It can be used in applications on top of SWT/Jface with or without eclipse platform. So the integration with standard SWT application is really straight forward.

Stand-alone Java application

The module "org.eclipse.e4.xwt" is the core engine of XWT. It depends only on SWT/JFace and JFace data binding. It can be used directly in any stand-alone Java application.

Eclipse integration

The plugin "org.eclipse.e4.xwt.pde" takes over this bridge role between XWT and eclipse environment. It implements mainly all extensions points to extend XWT at the current stage, more integration facilities will be provided in next releases.

Resource loading and UI creation

This paragraph explains the integration concept of XWT in an existing SWT application: how an existing classic SWT applications use XWT. XWT provides some APIs to load a UI component as children of an existing Composite via the class XWT.

The customized UI "UserControl" contains a Button with a selection event.

Now integrate the above example into a new XWT component directly. See the screenshot below.

Run the application and click the button.