Skip to content

Overview

Concepts and Principles

Development

Overview

IDEs

API Explorer

Releases

Release Notes

TORO Integrate

Coder Studio

Coder Cloud

Bug Reports

Search

Gloop Model Editor

The Gloop Model Editor is used for adding and editing properties to a model.

Gloop Model Editor

Gloop Model Editor

You can open the Gloop Model Editor by double-clicking a .model file from the Coder Navigator.

The Gloop Model Editor is connected to the Properties View in which when you open a Gloop Model. You can then see and edit its object properties using the Properties View that by default is displayed on the right hand side of the editor.

Note

When you want the object properties of the model to show at the Properties View, you could either click the Show Model Properties button at the toolbar or clicking an empty space at the Model Tree.

Adding Properties

You can add model properties (or variables) to the Gloop Model by using the toolbar or the context menu by right-clicking at the Model Tree, select Add, then select the type of model property you want to add. When a model property that is a Gloop Model is selected and you added a model property, that property would then be added as a model property of that Gloop Model. If the selected property isn't a Gloop Model, the model property would then be added after the selected property. When nothing is selected at the Model Tree, it will then be added at the bottom list of the Model Tree.

Adding a Property

Adding a Property

Keyboard Shortcuts

You could also use the content assist when adding model properties by pressing the . key. There are also specified keyboard shortcuts for adding model properties.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
Type | Shortcut
---- | --------
Big Decimal | Alt Shift D
Big Integer | Alt Shift I
Boolean | Alt B
Byte Array | Alt Shift B
Byte | Alt Y
Character | Alt C
Date | Alt A
Double | Alt D
Float | Alt F
Integer | Alt I
Long | Alt L
Model | Alt M
Object | Alt O
Short | Alt H
String | Alt S

You can see and edit these shortcuts at the *Preferences* by pressing <kbd>Command ,</kbd> and search for *Keys*.

Key Preferences

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
Type | Shortcut
---- | --------
Big Decimal | Command Shift D
Big Integer | Command Shift I
Boolean | Alt B
Byte Array | Command Shift B
Byte | Alt Y
Character | Alt C
Date | Alt A
Double | Alt D
Float | Alt F
Integer | Alt I
Long | Alt L
Model | Alt M
Object | Alt O
Short | Alt H
String | Alt S

You can see these shortcuts by pressing <kbd>Command H</kbd> to show the list.

Renaming a Property

To rename a model property, right-click the property then select Rename. You could also use the Properties View by changing the value of the object's property Name.

Renaming a Property

Renaming a Property

Ninja Tip

Using F2 or the Enter key can also rename the selected property.

Deleting a Property

To delete model properties, use the Delete button at the toolbar or right-clicking the property and selecting Delete. You could also delete multiple properties at the same time. Deleting a model property that is a Gloop Model would also delete its model properties.

Ninja Tip

Hitting Del key also deletes the property.

Adding Referenced Gloop Models

You can also add an existing Gloop Model as a model property by using the content assist or by dragging the model from the Coder Navigator and dropping it at the Model Tree. When the model is added, you could see a parenthesis with a name in it, you could also see that its object's property Reference has a value to it. These models are called Referenced Gloop Models.

Adding Referenced Model

Adding Referenced Model

Note

The model properties referenced by these Gloop Model can't be modified but you can add more model properties to these Gloop Model. You can also modify the object's properties of the Referenced Gloop Model but not the object's properties of its referenced model properties.

Converting Property Type

When you've mistakenly added a model property that is a String but you want it to be an Integer, rather than deleting the String property and adding a new Integer property, you could convert its type by right-clicking the property, select Convert To and then select Integer.

Converting a String to Integer

Converting a String to Integer

After converting it, you would see that the icon changed and its object's property also changed when you look at the Properties View.

Moving Properties

You could also rearrange your model properties by using the Move buttons ( up, down, left, right ) at the toolbar or simply dragging and dropping them. The Move Right is for moving the selected model property inside a Gloop Model property that is above it. While Move Left would remove it.

Moving a Property using the Toolbar

Moving a Property using the Toolbar

Moving a Property by drag and drop

Moving a Property by drag and drop

Ninja Tip

You can also use the shortcuts Command ↑, Command ↓, Command →, Command ← for moving a property.

Adding Comments to Property

You could add comments for each model property at the Properties View, under the Comments tab. When model properties have comments on them, you would see these comments at the Model Tree. You could hide them by clicking Toggle Comments at the toolbar.

Ninja Tip

Using / key can also be used to add/edit comments to a selected property.

Search Properties

You can search model properties via the Search bar in the toolbar of the editor. The model properties are then searched based from their object property Name. The results then would only show model properties and their parent model property that matches the searched text.

JSON and XML Definition

You could check the JSON or XML definition of the model properties of the Gloop Model simply by clicking the Show JSON or SHOW XML at the toolbar respectively. The JSON and XML definition also shows the value of the model property based from its meta property Default Value.

Toggling Views

Toggling Views