In this view, you can insert, modify, and organize your
Macro tags. The menus available in the view depend on the model selected
when you open your Macro and on the type of view selected (with skeleton
or no skeleton).
You can open the
PDP Macro editor from a
MacroName.cblgen file. This file is saved either in the
Design Explorer view if the Macro was created locally or in the
Navigator view if the Macro was generated in
Pacbase and imported into
the Design perspective. If you right-click on a
MacroName.cblgen file and select , the
PDP Macro
editor opens. It consists of an editor view and of a Macro tags tree
tab. The
Macro tags tree tab looks like in figure
1 (pointed at by an arrow):
Actions from the toolbar
In the
Macro tags tree, you can display a program skeleton.
To do so, click the

icon in the
Macro tags tree view toolbar. It displays the Macro tags tree in the skeleton of
a program retrieved from the model you selected when you opened the
current Macro. In figure 2, the
PDP Macro editor - batch
model) has been selected. So the Macro tags tree is displayed
in a
Pacbase program
skeleton for batch. Clicking the button again makes the view turn
into the default display.
The green tags in the tags tree can be updated. You
can then work directly in this view by selecting nodes in the tree.
The choices in the pop-up menu are available only for specific items
selected in the tree. For example, the Create specific
dialog subfunction command is available only for a dialog
function selected in a Macro editor for dialog model.
You can expand the tree items with the

icon or collapse the tree items with the

icon.
You can filter the list of nodes in the
tags tree view. To do so, you must enter characters in the field which
is just above the list of nodes. You can use the '*' and '?'
wildcard characters in the string. When you type something in the
text-entry field, a button is displayed beside the field. Clicking
this button clears the field and the list is displayed as it was formerly
with no filter applied.
You can filter the tags tree items to
show a view of the items you want to work on with the filter text-entry
field just above the tags tree. It is useful when the tags tree items
are numerous.
The Macro editor, located just
above the Macro tags tree view, gives you a dynamic
view of the updates.
Menu from the tags tree
From the pop-up menu
of the Macro tags tree view, you can perform a number of standard
operations depending on the item selected in the tree:
- Remove tag
- ,Override tag
- Create a child tag,
- Regroup tags,
- Create a linkage,
- Create a working
- Create function/subfunction,
- No generation/generation,
- Update level,
- Create a function/subfunction.
And other actions specific to the model chosen when you open
the editor (dialog, screen or server models).