Editing statements

Table of Contents

Previous | Top | Next

There are various options in the context menu for each pseudocode statement.

 

Pseudocode Editor Context Menu

 

Cut

Deletes the selected statements and places them on the clipboard, from where they can be pasted in another location.

 

Copy

Places the selected statements on the clipboard, from where they can be pasted in another location.

 

Paste

Enabled when there are statements on the clipboard. Statements can either be pasted before or after the selected statement, or alternatively into a statement if it is a composite statement.

 

Edit Notes

This will cause the flowchart symbol’s envelope symbol to appear or dissapear (depending on whether or not the Display notes option is turned on). It will also cuase any other components to be refreshed.

 

Edit Code

The flowchart symbol will turn green when there is associated code and any other components to be refreshed.

 

Refactor (Code Rocket Designer only)

The selected statements will be moved into a new procedure and linked to by a sub-procedure.

 

Pseudocode Editor Refactor Menu

 

The Extract Method item will open the Refactor Wizard.

 

Linking (Code Rocket Designer only)

Any statement can be linked to a procedure.

 

Pseudocode Editor Linking Menu

 

The Goto Link item will select the linked procedure for the selected statement, the Remove Link item will remove any existing linked procedure reference for the selected statement and the Select Link item allows the linked procedure to be chosen for the selected statement.

 

Surround With

When working with an algorithm you may realise that a large portion of it should be contained in a new parent type. Instead of cutting and pasting the statements into the new parent, the surround with feature allows you to quickly select and encase any pseudocode statements inside a new parent statement of the selected type.

 

Pseudocode Editor Linking Menu