new feature dialog

New attribute layout

Image:feature-wizard-attribute

When clicking Attribute, the window changes to the attribute layout.

New feature dialog

The new feature dialog window lets you create simple Eiffel features using the coding standards described in Object-Oriented Software Construction, 2nd Edition. It automates the task of writing set-procedures for attributes and it makes it easy for you to find the right feature clause for a new feature. The new feature dialog can be invoked whenever you have a class open in a development window.

New feature dialog overview

There are two parts in the window. The upper part allows you to choose what type of feature you want to create, a procedure, a function or an attribute.


Image:feature-wizard


The rest of the window is used to set the characteristics of the new feature. Information you will be asked depends on the type you chose. For more information, click on one of the links below:


New procedure layout

Image:feature-wizard-procedure

When clicking Procedure, the window changes to the procedure layout.

New function layout

Image:feature-wizard-function

When clicking Function, the dialog changes to the function layout.

Opening the new feature dialog

To make the new feature window appear, you can:

  • Click Image:16x16--new-feature-icon in the standard toolbar .
  • Select New feature in the Tools menu.
  • Use the Diagram tool: First, select create new client-supplier links by clicking on Image:new-supplier-link-icon .Then, pick the class to which you want to add the new feature. Lastly, drop the pebble on the class that corresponds to the type returned by the new feature.

This last method does not allow you to create procedures.

Syndicate content