IBM
Contents Index Previous Next



Using OM Access Together with the SDL Suite


Applications written with OM Access can easily be called from within the OM Editor, for example from a menu (for more info about defining your own menus see Defining Menus in the SDL Suite.

The following example adds a choice to generate C++ code skeleton of an OM Diagram from the OM Editor and pops up a text editor with the generated file in it.

Example 163 : ome-menus.ini

SDT-DYNAMICMENUS-3.6
[MENU]
Name=&OM Access
[MENUITEM]
ItemName=Generate C++ 
Separator=off
StatusbarText=Generate C++ code skeleton
ProprietaryKey=1
AttributeKey=0
Scope=Always
ConfirmText=You might want to change the name of the output file
ActionInterpretation=OS_COMMAND
BlockCommand=off
FormattedCommand=om2cpp %b `basename %b .som`.h
[MENUEND]


http://www.ibm.com/rational
Contents Index Previous Next