This functionality is only available for certain module packages.

action

Specifies the context menu or the actions in the toolbar.

Attribute name Usage Attribute values Default value Description
addToContextMenu optional true
false
true true = the action is added to the popup menu
true = the action is not added to the popup menu
addToToolBar optional true
false
false true = the action is added to the toolbar
true = the action is not added to the toolbar
disImageSrcPath optional Path to the image object, which is displayed beside the disabled action in the popup menu.
enabled optional Formula to the EO of a node. If the formula returns true, the action is displayed after selecting the node.
group optional Specifies a menu group within the palette. If no menu group exists, it is created. If the menu group already exists, the action is inserted into the group.
id required Unique ID of the action
imageSrcPath optional Path to the image object, which is displayed beside the enabled action in the popup menu.
meetsPostcondition optional true, false false Controls the visibility of the action (extends the attribute enabled).
true = action is displayed
false = action is not displayed
meetsPrecondition optional true, false false Controls the visibility of the action (extends the attribute enabled).
true = action is displayed
false = action is not displayed
offset optional Offset in pixels for the position of the object relative to the current node in the order dx, dy.
super optional References the action, which is used as template.
text optional Text to be displayed in the palette
tooltip optional Text which is to be displayed as tooltip in the palette
type optional Specifies the implementation Only one implementation is available.
Allowed sub-elements Quantity
none

The attribute showRelatedObjects specifies if the classes, which are determined by the attribute relatedObjects are to be displayed in the sub-menu of the popup menu. If the value of the attribute is true all determined class objects are displayed in the submenu (see the following figure) and single class objects are selectable. If the value is false, the popup menu behaves as before.