A product hands the runtime off to an application, which can be thought of as a custom Eclipse Runnable
class. This is the main entry point to the application, which is responsible for setting up and tearing down the content of the application.
Create a new plug-in, called
com.packtpub.e4.headless.application
. Ensure that the This plug-in will make contributions to the UI is unselected and Would you like to create a rich client application is set to No:Click on Finish and the project will be created.
Open the project, select Plug-in Tools | Open Manifest, and go to the Extensions tab. This is where Eclipse keeps its list of extensions to the system, and where an application is defined.
Click on Add and then type
applications
into the box. Ensure that the Show only extension points from the required plug-ins is unchecked. Choose theorg.eclipse.core.runtime.applications
extension point and click on Finish: