This view offers you useful menus to modify the code of a macrostructure.
The menus available in the view depend on the model selected when you opened
your macrostructure (Batch model or dialog model) and on the type of view
chosen (with skelton or no skelton).
This view is available under the Navigation view
of the Design perspective, via on a .cblgen output file of a generated macro.
The PDP Macro editor which consists of an editor view and of a macrostructure
tags tree tab. This page is presenting the Macrostructure tags tree tab
which looks like in figure 1 (pointed at by a red arrow):
To display the code
of a macro in a skelton view, click the
button, the tags tree lines appear in green in the program skelton
of the Pacbase model in figure 2:
Toolbar
- Edit skelton
- A click on the
button
displays the macro tags in the program skelton of the model you have selected
when you opened your macro. Another click on the button displays the view
with no skelton (standard display mode).
- Expand all
- A click on the
button expands all the collaped nodes of the
tags view.
- Collapse all
- A click on the
button, collapse all the expanded nodes of
the tags tree.
Text filter
You can limit the number of entries in
the tags tree view by entering filtering options. When you type something
in the input field, a button displays beside the field. A click on this button
clears the field.
Context menu
From the context menu of the macro tags
tree view you can perform a number of interesting operations depending on
the item selected in the tree:
- Remove tag
- This command is used to remove a tag selected in the macrostructure tags
tree.
- Override tag
- This command is used to override a tag selected in the macrostructure
tags tree.
- Create a child tag
- This command is used to create either a detail line under a function/sub-function
selected in the tags tree in a standard view (no skelton). Used to create
child tags under a <SOURCE> tag, a <WORKING>,
a <SUITE-WORKING> tag, a <IOSEC-FILECTRL> or <FILE> tag
in a skelton view. This command opens a dialog box whose fields display depends
on the tag selected in the tree.
- Regroup tags
- This command is used only in a skelton view to regroup tags selected in
the tree.
- Create a linkage
- This command is used only in the skelton view to create a linkage under
a <DATA> tag selected in the tree. It opens a dialog
box in which you enter line number values.
- Create a working
- This command is used only in the skelton view to create a working section.
- No generation/generation
- This command enables you to put a tag on functions you want to be generated.
Right-click on a function and select no generation/generation,
a blue SUP tag displays on the left side of the function node. If you
click on a function tagged for generation, and select the no generation/generation choice
in the context menu, the tag is removed and the function will not be generated.
- Create function/sub-function
- This command is used in both views, with or without any skelton, to create
a new function or a sub-function. It opens a dialog box in which you enter
codes for the function or sub-function and a level value.
- Update level
- This command is used to modify the level of a function/sub-function. it
is available in both views, on a skelton view and on a standard view. It opens
a dialog box in which you enter a new level value.
- Create specific dialog sub-function
- This context menu is active only for dialog sub-functions. It is used
to create a new function in a skelton or in a standard view mode.
Note: You
define the dialog model type when you open your macro.
- Update parameters (specific dialog)
- This context menu is active only for dialog sub-functions. It is used
to update some parameters of a dialog sub-function selected in the macrostructure
tags tree.
Note: You define the dialog model type when you open your macro.