Creating a Plugin Element

To create a plug-in element, follow these steps:

1. Select the appropriate link for the element type to create from the Plugin Configuration Editor page or from the Plugin Element Creation icon.
A wizard similar to the following appears.

image\img00545.gif

Source folder: Enter or select the name of the source folder for this element.

Package/Enclosing Type: Specify either a package to contain the new class, or an enclosing type. Enter package or enclosing type name or click Browse to select one.

Name: Enter a name for this class.

Modifiers: Specify one or more access modifiers for the new class.

Either public, default, private, or protected (specify private and protected only for an enclosing type)

abstract

final

static (for enclosing type only)

Superclass: Enter a superclass for this class or click Browse to select one.

Interfaces: Click Add to specify the interfaces that the new class implements.

Which methods stubs . . .?: Choose the method stubs to create in this class:

public static void main(String [] args) -
Adds a main method stub to the
new class.

Constructors from superclass -
Copies the constructors from the new class's superclass and adds these stubs to the new class.

Inherited abstract methods -
Adds to the new class stubs of any abstract methods from superclasses or methods of int
erfaces that need to be implemented.

Do you want to add comments . . .?: Click Generate comments check box for the wizard to automatically add comments to the new class.

 Click Next.
A
Create Tag Mapping dialog appears.

2. Specify a tag name for this element in the Tag Name field and click Next.
A
Composite Plugin's UI definition file dialog appears.

image\img00546.gif

Enter or select the parent folder: Enter the name of the parent folder of the UI definition file for this plug-in, or navigate through the list of projects to select it.

File name: Enter the name of the UI definition file for this plug-in.

 

3. Click Finish.
Nexaweb creates the composite plug-in class, adds it to the project directory structure and displays it in the Visual Editor.

image\img00547.gif