Wiki

Clone wiki

Interfaciator / Home

Introduction

The Interfaciator-plugin enables you to create interfaces based on an existing class simply by choosing it in the project-manager.

Creating an interface

1. Right-click the target-class out of which the methods should be extracted and select "Extract interface" in the context-menu

Step 1

2. (De-)select the methods as you wish

Step 2

(3.) Select the target package if necessary

Step 3

(4.) Adjust interface-name if necessary

Step 4

5. Click "Generate"

Step 5

Settings

You have 5 points to adjust the behaviour of the plugin:

  • Display full path: With this setting you can control if the full path is displayed in package-picker (see step 3 before) or not. By default it is set to false, meaning only the package-part of the path is displayed.
  • Display icons: With this setting you can control if the icons in method-picker (see step 2 before) get displayed or not. By default it is set to true, meaning icons get displayed.
  • Display modifiers: With this setting you can control if the additional information about the accessors in method-picker (see step 2 before --> e.g. [static, set]) shall be displayed or not. By default it is set to true, meaning that modifiers get displayed.
  • Method auto-selection: This setting determines if all the methods in the method picker (see step 2 before) shall be selected by default (True, by default) or not (false)
  • Name prefix: In this field you may enter the string that gets attached in front of the proposed name for the interface.

Settings

Updated