Implement and declare the Action class
This section describes how to create an Action class with Eclipse.
- To create an Action class
- In Eclipse, select New Java Class to create a class in order to implement the interface com.neotys.extensions.action.Action.
- You can specify a custom name for the Java class, e.g. MyAction.
- Click Finish to validate the new MyAction class.
- Fill type, default parameters, icon and description fields.
For methods getMinimumNeoLoadVersion and getMaximumNeoLoadVersion,
replace the line return null;
with return Optional.absent();
- Reference the new action class in the file META-INF/services/com.neotys.extensions.action.Action:
- Right-click the project and select New > Folder.
- Enter META-INF in the Folder name field and click Finish.
- Repeat the previous step to create a folder called services in the META-INF folder.
- Right-click the folder services and use the New > File command to create a file named com.neotys.extensions.action.Action in the folder services.
- Double-click the com.neotys.extensions.action.Action file to edit it adding the full qualified name of the Action class (i.e. package and class name).
Home