Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
tutorial:plugins [2021/01/05 03:11] admin [Learning Objectives] |
tutorial:plugins [2021/01/10 17:58] (current) admin [Using Custom Plugin] |
||
|---|---|---|---|
| Line 73: | Line 73: | ||
| } | } | ||
| - | By default, all public methods declared as well as inherited are exposed as MScript function. | + | By default, all public methods declared as well as inherited are exposed as MScript function. |
| Don't forget to write junit test to test the plugin functions. | Don't forget to write junit test to test the plugin functions. | ||
| Line 79: | Line 79: | ||
| ===== Deploy Custom Plugin ===== | ===== Deploy Custom Plugin ===== | ||
| - | Export project as jar file | + | * Export project as jar file |
| - | Copy plugin jar file to /lib folder in // | + | |
| - | Register your plugin package in config.properties: | + | |
| | | ||
| Line 87: | Line 87: | ||
| Above registry tells // | Above registry tells // | ||
| - | Restart TestOptimal server to make the changes effective. | + | * Restart TestOptimal server to make the changes effective. |
| ===== Using Custom Plugin ===== | ===== Using Custom Plugin ===== | ||
| - | Open an existing model or create a new model | + | Plugins must be activated before they can be used in the script. |
| - | Select | + | |
| - | Click on " | + | * Open an existing model or create a new model |
| - | Check the checbox | + | |
| - | Your plugin should show up on CodeAssist list as // | + | |
| + | | ||
| + | * Close Plugin Activation dialog | ||
| + | |||
| + | Press // | ||