ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Editors / UML editor
  • Overview
  • How to?
  • Creating a class diagram
  • Creating a class
  • Adding an attribute
  • Add an operation
  • Create a relationship
  • Creating a package
  • Using packages
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
How to?

Creating a class diagram

To create a class diagram:
  1. Click in the quick access buttons.
    • The new element window appears: click "Architecture", and then "UML".
    • The UML model creation wizard starts.
  2. Select "Class diagram".
  3. Specify the UML model into which the diagram is to be inserted.
  4. Choose to edit the diagram directly.
  5. Validate the new class diagram. The new model appears in the editor.
Remark: If you chose to create a class, the corresponding wizard starts automatically.

Creating a class

To create a class:
  1. On the "Class diagram" tab, in the "Creation" group, click "Class". The class creation wizard starts.
  2. Specify:
    • the name of the class. This name will be the name of the corresponding WINDEV class (".WDC" file) when generating the UML model.
    • the caption describing the purpose of the class.
  3. Define:
    • the attributes of the class. These attributes will correspond to the members of the WINDEV class when generating the UML model.
    • the operations of the class. These operations will correspond to the methods of the WINDEV class when generating the UML model.
  4. Validate the description of the class.
Remark: If you chose to create another class, the corresponding wizard starts automatically.

Adding an attribute

To add an attribute:
  1. Select the class in which the attribute is to be added.
  2. On the "Class diagram" tab, in the "Creation" group, click "Attribute". The attribute creation wizard starts.
  3. When generating the UML model, the attribute will be converted to a member of the WINDEV or WEBDEV class. Its characteristics will become the characteristics of the member according to the following table:
    UML classWINDEV class
    Attribute nameMember name
    Caption of the attributeComment in the member declaration
    Type of the attributeType of information in the member
    Initial value of the attributeInitial value of the member
    Visibility of the attributeVisibility of the member
4. Validate the description of the attribute. The attribute is automatically added to the current class.
Remark: The characteristics of an attribute can be modified in the class description window (select "Description" in the context menu of the class).

Add an operation

To add an operation:
  1. Select the class in which the operation is be added.
  2. On the "Class diagram" tab, in the "Creation" group, click "Operation". The operation creation wizard starts.
  3. When generating the UML model, the operation will become a method of the WINDEV class. Its characteristics will become the characteristics of the method according to the following table:
    UML classWINDEV class
    Name of the operationMethod name
    Caption of the operationComment in the declaration of methods
    Type of result returned (if the operation returns a result)Type of result returned (if the method returns a result)
    Parameters of the operationParameters of the method
    Visibility of the operationVisibility of the method
4. Specify the type of the operation: abstract or shared between all the classes.
5. Validate the description of the operation. The operation is automatically added to the current class.
Remark: The characteristics of an operation can be modified in the class description window (select "Description" in the context menu of the class).

Create a relationship

To create a relationship:
  1. Depending on the type of relationship to create, on the "Class diagram" tab, in the "Creation" group:
    • click "Generalization" to create a generalization.
    • click "Association" to create an association.
    • click "Dependency" to create a dependency.
  2. Specify the requested information.
  3. Validate the description of the relationship.

Creating a package

To create a package:
  1. On the "Class diagram" tab, in the "Creation" group, click "Package". A new package appears in the UML model.
  2. Right-click the new package and select "Description" in the context menu. The package description window opens.
  3. Specify:
    • the name of the package. This name is displayed in the package in the UML editor.
    • the caption describing the purpose of the package.
  4. Validate the description of the package.

Using packages

You can add classes to a package from the "UML analysis" pane. To do so, drag the class and drop it onto the desired package.
Remark: The classes that have been added to the packages are not displayed in the UML editor.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/02/2023

Send a report | Local help