IntelliJ IDEA 14.0.0 Web Help

New ActionScript Class dialog

File | New | ActionScript Class

Use this dialog to specify the settings for an ActionScript class or interface to be created. You can also create a new package if you specify the package that doesn't yet exist.

Item Description
Name Specify the name of the class or interface.

When the cursor is in this field, you can use the Up and Down arrow keys to browse the contents of the Template list.

Package Specify the fully qualified name of the package in which the class or interface should be created. To do that, you can:
  • Select the package from the list.
  • Click browseButton (Shift+Enter) and select the package in the Choose Destination Package dialog that opens.
  • Type in the field. To enable package name completion, press Ctrl+Space.

This field may be left blank. In this case, the class or interface will be created in the default root package (usually corresponds to the src folder).

If you type the name of a package that doesn't yet exist (the name in this case is shown red), the corresponding package will be created.

You can create more than one package at once. For example, if you type myPackage.mySubpackage and none of these packages currently exists, both these packages (myPackage and mySubpackage) will be created.

Template Select the file template to be used.
  • Class. Select this template to create a class that doesn't extend another class or implement an interface.
  • Class with Supers. Select this template to create a class that extends another class and/or implements one or more interfaces.
  • Interface. Select this template to create an interface.

To edit an existing file template or to create a new one, click browseButton (Shift+Enter). The File Templates dialog will open.

If the selected template contains variables whose values are undefined, the Next button appears in the dialog instead of the Create button. In such a case, if you click Next, an additional dialog opens in which you can set the variable values. (This may happen if a custom template that contains custom variables is used.)

See also, Predefined file template variables for ActionScript and Flex and An example of creating a custom file template for an MXML component.

Superclass For the Class with Supers template: specify the class that the class you are creating should extend. To do that, you can:
  • Click browseButton (Shift+Enter) and select the class in the Choose Superclass dialog that opens.
  • Type in the field. To enable class name completion, press Ctrl+Space.
Interfaces For the Class with Supers template: specify the interface or interfaces that the class you are creating should implement.

To add an interface to the list, point to >> and click add (Alt+Insert). Select the interface in the Choose Super Interface dialog that opens.

To remove unnecessary interfaces from the list, select them and click delete (Alt+Delete).

See Also

Last modified: 12 November 2014
comments powered by Disqus