The PX updates are implemented in Java. To do this, the Eclipse development environment must be set up (see Implementing native Java).
A new plug-in project is created using the wizard of the same name:
- Open the menu File > New > Other.
- Select Plug-in Project.
- Confirm the selection with [Next >].
- Enter a name for the plug-in in the Project Name field.
- Check the information for the Source folder and Output folder, as well the Eclipse version.
- Confirm with [Next >].
- Enter the name of the plug-in in the Name field.
- Enter your own company name in the Provider field.
- Close the wizard with [Finish].
- Open the Dependencies tab.
- Add to the list of Required Plug-ins the plug-in com.mind8.project.exchange (1.0.1).
- Save the editor using [Ctrl] + [S].
- Open the Extensions tab.
- Add to the list of All Extensions the extension point com.mind8.project.exchange.IProjectExchangeModelUpdate.
- Enter in the toVersion field the version number to which the plug-in is updated (target version).
- Enter a self-explanatory name in the name field (optional).
- Enter a description of the plug-in in the description field (optional).
- Enter the EOX file name of a specific model in the modelID field if the plug-in is relevant only to this model. Do not enter an EOX file name if the PX updates are to be applied to all PX files.
- Save the editor using [Ctrl] + [S].
- Click the class link.
- Without entering further information, confirm the dialog with [Finish].
The plug-in project is given a name and settings for the source and output folder in the subsequent dialog.
Information on the version and publisher of the plug-in is entered in the subsequent dialog.
Eclipse then switches to the Plug-in Development perspective. Further settings can be configured there.
The plug-in must be assigned an extension point. This is done in the Extensions tab.
The Java class can be created on the same tab.
The New Java Class dialog opens.
Then, the new Java class is opened in an editor.