AnalysisBaseClass.setEdittingMenuID


setEdittingMenuID(menuID, [clientData], [isRelativeID])

Set the menu ID that will be generated when this analysis is editted or double-clicked on. The existing menu entry 'Edit...' will be modified in the context menu such that it generates the ID given. When this menu item is chosen by the user, or the analysis is double-clicked, all LUSAS extension modules will be informed that the given menu ID has been triggered. The appropriate module can then handle all three events (creation, edit, double click) in one handler - onMenuClick. Note that the user can no longer view or modify the underlying modeller definition via the "Edit..." menu entry. To enable this, call setDefinitionMenuID() in preference to this function.

menuIDinteger
clientDataoptional variant This data will be passed back to you, unmodified, in your overrides of onMenuClick() and onMenuUpdate(). Limited to simple types such as strings and integers
isRelativeIDoptional boolean If true, the given menu ID is assumed to be relative to the constant ID_MODULE_MENU_MIN. If false (the default), it is an absolute value
Return valuenone 

See also insertItem appendItem setEditDialog setDoubleClickDialog insertContextMenuItem removeExternalDefinition

Back to AnalysisBaseClass

Back to Overview