Chapter 4 Managing Profiles
Adding an event handler to a metaclass or a stereotype
When you add an event handler to a metaclass or a stereotype, you have to select the type of the event handler and then define the script that will be run when the event occurs.
To add an event handler to a metaclass or a stereotype:
- Right-click a metaclass or a stereotype and select New→Event Handler.
An event handler selection dialog box is displayed.
- Select one or several event handlers and click OK.
The event handlers are added in the Event Handler category in the selected metaclass or stereotype.
- Select an event handler.
The General tab of the event handler property sheet is displayed in the right pane.
- Click the Event Handler Script tab to display the corresponding tab.
- Type the event handler script.
- Click Apply and repeat the previous step for each event handler.
Copyright (C) 2005. Sybase Inc. All rights reserved.
|
|