download support shop

Code Examples Tab

The Code Examples Tab contains examples for the currently selected class or element. The upper part of this tab contains a tabbed example selector with five types of examples. The selector lists available examples for each example type. The lower part of this tab contains the source code for the example and shows the license term for using this example.

General class examples: Code that shows in general how a class is used. General class examples have been selected with the goal of showing several methods and fields of the specified class working together.

Subclass examples: Examples of classes that extend the current class.

Interface implementations: Examples of classes and interface that implement the current interface (always empty, if the selected class is not an interface).

Examples using the member: Examples for the currently selected method, constructor or field. This is the most frequently used type of example.

Utility methods and classes: Contains potentially useful methods and classes for the selected class.

Screenshot of Examples Tab

Note that all code examples are copyrighted by their respective copyright owners. If you intend to use an example in your source code, it is your responsibility to verify the license. We only provide a starting point for determining the license. INVENTIVIO GMBH DOES NOT GUARANTEE THAT THE LICENSE OR THE LICENSE TERMS SHOWN ARE VALID, COMPLETE OR CORRECT. Read more about your need to verify the licenses.

The lower part of the Code Examples Tab contains the example. Click the License Terms button to view the license terms. You may click the save button to save a copy of the source file containing the example to your hard disk (mind the license terms!).

A right-click on the lower part of the Code Examples Tab provides a menu that shows the origin of the file. In some cases, only the method that is of interest is shown in the lower part of the window. The context menu allows to view the whole source file or to try to find the declaration of a selected term.

For copyright reasons, the license text is prepended to the source code. This may lead to the cases where the license text is shown twice.


Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc.