New Java Class Wizard

This wizard helps you create a new Java class in the workbench.

Java Class Options

Option

Description

Default

Folder

Type or browse to select a container for the new class.

The project from which you chose to create the new class.

Package

Type or browse to select a package to contain the new class. You can select either this option or the Enclosing Type option, below.

Either the package that contains the selected Java resource or the default package

Enclosing Type

Select this option to choose a type in which to enclose the new class. You can select either this option or the Package option, above. Either type a valid name in the field or click Browse to select a type via a dialog.

<blank>

Name

Type a name for the new class.

<blank>

Access Modifiers

Select one or more access modifiers for the new class.

  • Either public, default, private, or protected (private and protected are only available if you specify an enclosing type)
  • abstract
  • final
  • static (only available if you specify an enclosing type)

public

Superclass

Type or click Browse to select a superclass for this class.

java.lang.Object

Interfaces

Click Add to choose interfaces that the new class can extend.

<blank>

Which method stubs would you like to create?

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.

All off