Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Java Development User Guide
Previous Page Home Next Page

New Java Class Wizard

The Opens the New Java Class wizard New Java Class wizard helps you to create a new Java class in in a Java project.

Java Class Options
Option Description Default
Source folder Enter a source folder for the new class. Either type a valid source folder path or click Browse to select a source folder via a dialog. The source folder of the element that was selected when the wizard has been started.
Package Enter a package to contain the new class. You can select either this option or the Enclosing Type option, below. Either type a valid package name or click Browse to select a package via a dialog. The package of the element that was selected when the wizard has been started.
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. The type or the primary type of the compilation unit that was selected when the wizard has been started or <blank>
Name Type a name for the new class. <blank>
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. The type (not the compilation unit!) that was selected when the wizard has been started or <java.lang.Object>
Interfaces Click Add to choose interfaces that the new class implements. <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 or methods of interfaces that need to be implemented.
Inherited abstract methods enabled
Do you want to add comments? When selected, the wizard adds comments to the new class where appropriate. Do not add comments

Related reference

File actions


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire