class

Class formatters: Basic text view

tags:

Basic text view Image:view-editor-icon is the only editable view; this is why it is only available through the editor.


Image:class-mini-format-bar


This is also the view selected by default when the editor is opened for the first time. In this view, most of the development objects are clickable, except for special cases like assertions, anchored types, identifiers within a comment line... for which the clickable view might be needed.

Changing colors of classes

  1. Start pick-and-drop on the class bubble you want to change the color of.
  2. Drop it in the Change color hole. Image:diagram-choose-color-icon
  3. A color selection dialog appears. Select the color you want and click OK.

Image:color-dialog-windows

Retrieving all classes into a cluster

  • If you have a cluster in your view that is incomplete and you want to show all classes in it, drop the cluster into the Include all classes of cluster hole. Image:diagram-fill-cluster-icon

Creating a new class

tags:
  • To create a new class pick from the Create a new class button. Image:16x16--new-class-icon Then drop on the diagram where you want to place the class bubble. A dialog now appears where you can enter a name and specify the cluster.

See Also: 'See Also'
Creating a new class using the address bar


Moving a class

tags:

To move a class from a cluster to another one, you have to use the Diagram tool. First, center the tool on the cluster that contains the class you want to move. Then, if the destination cluster is not shown on the diagram, pick it in the groups tool and drop it in the diagram. Once both clusters are displayed, you just have to drag the class to its destination.

See Also:
Find where a class is
Find where a cluster is


Adding a class

tags:

A dialog window is dedicated to the creation of new classes.


Image:new-class-dialog


A list of all the clusters of the system lets you to choose in which one the new class will be inserted. The name of the new class and the name of the corresponding file can be set thank to two text fields above the list. It is also possible to define whether the class should be deferred or expanded, what its creation feature is (if any), what its parents are and whether the default feature clauses should be generated.

Viewing information about a class

Once you centered the editor on a class, you have access to its basic text. If the class is compiled, the features tool shows the list of the features that are defined or redefined in this text. You can also view clickable, flat, flat contract and contract views of the class in the editor. The class tab in the context tool can display more information.

Looking for a class

tags:

There are two simple ways to find a class if you know its name or a part of it :

  • You may use the groups tool . This tool presents the entire universe of your project. By developing the cluster tree , you will be able to find what you are looking for. This method is quick if you already have an idea of where the class is in the universe.
  • Using address bars will be quicker if you do not have this information or if the size of your project is important.
Syndicate content