Before the new plug-in is compiled and exported, any EEC that is still running should be stopped.
The following steps are necessary to export and compile the plug-in:
- Open the export wizard by selecting File > Export...
- Open the Plug-in Development branch.
- Select Deployable plug-ins and fragments.
- Confirm the selection with Next >.
- Select the plug-in to be exported (here de.eplan.eec.scripting).
- In the Destination tab, select the \dropins sub-folder of the EEC installation folder.
- Open the Options tab.
- Select the Package plug-ins as individual JAR archives check box.
- Finish with Finish.
Eclipse can then be closed and EEC can be restarted.
During the start of EEC all plug-ins are registered. New plug-ins that are stored in the /dropins folder are also considered.
Testing registration of the new plug-in
Proceed as follows to determine whether the new plug-in was successfully loaded in EEC:
- Start EEC
- Select Help > About EPLAN Engineering Configuration.
- Click [Installation details].
- Open the Plug-ins tab.
- Navigate to the name of the new plug-in (here Example).
If the new plug-in is not listed, it has not been loaded. Check the following points:
- Is the Native language marked in EEC for the method?
- Do the specified arguments in the NativeMethodExtension.java correspond with the method definition?
- Is the AbstractNativeMethod super class specified for the implementation of the method?
- Is the INativeMethod interface specified for the implementation of the method?
- Is the visibility modifier of the constructor of the implemented method public?