This functionality is only available for certain module packages.

You are here: EEC > BASE > PX update > Creating a plug-in in Eclipse

Creating a plug-in in Eclipse

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:

  1. Open the menu File > New > Other.
  2. Select Plug-in Project.
  3. Confirm the selection with [Next >].
  4. The plug-in project is given a name and settings for the source and output folder in the subsequent dialog.

  5. Enter a name for the plug-in in the Project Name field.
  6. Check the information for the Source folder and Output folder, as well the Eclipse version.
  7. Confirm with [Next >].
  8. Information on the version and publisher of the plug-in is entered in the subsequent dialog.

  9. Enter the name of the plug-in in the Name field.
  10. Enter your own company name in the Provider field.
  11. Close the wizard with [Finish].
  12. Eclipse then switches to the Plug-in Development perspective. Further settings can be configured there.

  13. Open the Dependencies tab.
  14. Add to the list of Required Plug-ins the plug-in com.mind8.project.exchange (1.0.1).
  15. Save the editor using [Ctrl] + [S].
  16. The plug-in must be assigned an extension point. This is done in the Extensions tab.

  17. Open the Extensions tab.
  18. Add to the list of All Extensions the extension point com.mind8.project.exchange.IProjectExchangeModelUpdate.
  19. Enter in the toVersion field the version number to which the plug-in is updated (target version).
  20. Enter a self-explanatory name in the name field (optional).
  21. Enter a description of the plug-in in the description field (optional).
  22. 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.
  23. Save the editor using [Ctrl] + [S].
  24. The Java class can be created on the same tab.

  25. Click the class link.
  26. The New Java Class dialog opens.

  27. Without entering further information, confirm the dialog with [Finish].

Then, the new Java class is opened in an editor.