Edit menu

The Edit menu is a dynamic menu. The available options vary depending on the type of model opened within the active Model Editor Window as well as the type of object or objects selected.

The Edit menu on the menu bar is exactly the same as the context menu in the Model Editor window. If you select a model instance or any other model element, the context menu shows items for all operations available for the selected model element.

In contrast, by clicking on the model background, the context menu shows items for all operations that are available for the model itself. A number of edit menu items are only active if you have write access to the model.

The following edit menu items are available in all model Model Editor windows.

Option

Shortcut

Description

Availability requirements

Undo

Ctrl-Z

Reverses the last change made to your model.

 

Redo

Ctrl-Y

Reverses the last Undo.

 

Add Breakpoint

 

Adds a breakpoint to the selected model element.

Simulation Mode, Breakpoints On

Remove Breakpoint

 

Deletes an existing breakpoint from the selected model element.

Simulation Mode, Breakpoints On

Delete

Del

Deletes all selected objects in the active Model Editor window.

Write access

Cut

Ctrl-X

Moves all selected objects in the active Model Editor window to the clipboard. The contents of the clipboard can be used to paste the objects into any other model.

Write access

Copy

Ctrl-C

Copy all selected objects in the active Model Editor window to the clipboard. The contents of the clipboard can be used to paste the object into another compatible model.

 

Paste

Ctrl-V

Copies the contents of the clipboard to the model in the active Model Editor window provided that the content of the clipboard is compatible with the model.

Write access

Select All

Ctrl-A

Marks all model elements in the active Model Editor window including text labels and connections.

 

The following edit menu items are used to deal with models. The availibility of menu options depends on the type of the selected model.

Option

Shortcut

Description

Availability requirements

Online Documentation

D

Opens hypertext documentation for the model in the active Model Editor window or the model referenced by the selected model instance. If the documentation does not exist, it is automatically generated from the model.

 

Find In Tree

Ctrl-G

Selects the item in the Tree View which belongs to the selected model or model instance.

The Library panel of the Tree View is active.

Open Model

M

Opens the model of the selected model instance.

 

Open Source

S

Opens the primitive source file. MLDesigner opens the primitive source code using a primitive editor. This editor is a text editor that provides you with editing capabilities like syntax highlighting and primitive specific functions.

Selected model instance is a primitive.

Open Base Primitive

 

Opens the base primitive.

Selected model instance is a derived primitive.

Compile Source

 

Compiles the primitive source file.

Selected model instance is a primitive.

Replace Instance

 

Replaces the model instance selected in the active Model Editor window. A Select Model dialog is displayed where you can choose the model to replace the existing one with. Connections are only maintained for ports with exactly the same name as the existing model instance.

 

Dynamic Instance

 

Creates a Dynamic Instance of the selected model instance. See Dynamic Instances for more details.

 

Hide Port Labels

 

The port labels can be turned off if the Model Editor window gets too busy or as soon as you have connected all model instances. The port label is set by clicking the Formal Port of the Primitive or Module to activate the Port Properties editor in the bottom left corner of the GUI.

 

Show Port Labels

 

Makes any port label of the selected model instance visible. This can be useful when connecting modules with multiple input/output ports where the order of connection is important. Once connections are made you can turn the labels off again.

 

Rotate Ports

 

This options opens a submenu with the choice of rotating the ports Clockwise, Counterclockwise, or 180 Degree.

Write access

Mirror Ports

 

You can choose to mirror the ports on the X-Axis or Y-Axis of the model instances.

Write access

Swap Ports

 

Swaps ports positions horizontally or vertically without the connections crossing over.

Write access

Disconnect Connected

 

Disconnects all connected ports of selected model instances.

Write access

Terminate Unconnected

 

Terminates the unconnected ports of selected model instances.

Write access

Unterminate Terminated

 

Unterminates all terminated ports of selected model instances.

Write access

Background Color

C

Opens a color dialog for selecting background colors for models and model instances.

Write access

The following edit menu items are used to create new model elements within the model in the active Model Editor window. These menu items are only available if the model belongs to a model of type library, system, module, or primitive. The configuration of the edit menu can differ for models of different types. If you do not have write access to the model these items are disabled.

Option

Shortcut

Description

Add Instance

B

Creates a new instance of a model at the current cursor position within the model. The model to be embedded is selected using the Select Model dialog.

Add Input Port

I

Creates a new input port at the current cursor position within the model in the active Model Editor window. The properties of the new input port are set to default values and can be changed using the Property Editor.

Add Output Port

O

Creates a new output port at the current cursor position within the model in the active Model Editor window. The properties of the new output port are set to default values and can be changed using the Property Editor.

Add Event

E

Creates a new event element at the current cursor position within the model in the active Model Editor window. The properties of the new event element are set to default values and can be changed using the Property Editor.

Add Memory

M

Creates a new memory element at the current cursor position within the model in the active Model Editor window. The properties of the new memory element are set to default values and can be changed using the Property Editor.

Add Resource

R

Creates a new resource element at the current cursor position within the model in the active Model Editor window. The properties of the new resource element are set to default values and can be changed using the Property Editor.

Add Label

L

Creates a new text label at the current cursor position within the model in the active Model Editor window. The properties of the new label are defined using the Property Editor.

The following edit menu items are only available for FSM models. If you do not have write access to the FSM model these edit menu items are disabled.

Option

Shortcut

Description

Add State

S

Creates a new state in the FSM model in the active Model Editor window. The properties of the new state can be changed using the Property Editor.

Add History

H

Creates a new history in the FSM model in the active Model Editor window. The properties of the new history can be changed using the Property Editor.

Add Default Entrance

F

Creates a new default entrance in the FSM model in the active Model Editor window. The properties of the new default entrance can be changed using the Property Editor.