5.3.2. Creating an extension
Prev | 5.3. Usage of the New Extension Wizard | Next

### 5.3.2. Creating an extension

1. In the Project Name field enter a project name prefix for your extension. The extension will consist of three eclipse projects, therefore the entered project name is being used as the prefix.

2. Select the execution environment. Make sure to use Java 1.8 or later. If required, clicking on the "Configure JREs..." link will open the Installed JREs page of the Eclipse settings.

3. After you have entered all the necessary information, click "Next" to continue.

4. Select the desired toolkit and click "Next".

5. Enter the extension features' ID, Version, Name and Vendor. In most cases the pre-entered texts should be suitable.

6. Select a component type from the dropdown menu. The component will inherit all standard actions of the component type. If you would e.g. like to add support for a component that behaves as a button, guidancer.concrete.Button should be chosen. The most basic type is guidancer.abstract.Widget.

7. After choosing the type you can:

   1. Choose a component that is already supported and add additional actions to that component.

   2. Enter or choose a component that is not supported by Jubula, yet.

8. If you do not have a target platform for Jubula extension development, yet, tick "Create a Jubula target platform file". You need a valid target platform to code and build your extension properly.

9. Click "Next" to continue.

10. Enter a class name for the tester class. The tester class will contain all action's methods.

11. By pressing the "New..." button you can create a new action.

12. 1. To rename an action, simply click on the action's current name, enter the new name and hit enter.

    2. To delete an action, select it and click on the "Delete" button.

    3. To change the order in which the action's methods will occur in the tester class, use the "Up" and "Down" buttons to move a selected action up or down respectively.

13. To add parameters to an action, select the action and click on the "Param..." button. In the opening Action Parameters window you can create, delete and change the order of parameters just like you would in the actions list. If only special values should be allowed for a parameter you can enter value sets. Enter all allowed values each separated by a commma. Make sure that the entered value set consists of values of the parameter's type only.

14. By clicking "Finish" the wizard will close and the extension will be created.

15. After the generation has finished and you have selected to create a target platform file, the file will be opened in the target platform editor. In the top right corner click "Set as Target Platform" to use the target platform in your workspace.

16. For information about how to deploy your extension, see Section 3.2.2, “Deploying the toolkit plug-in”.