Changing double-click behavior through a script
Typically, you will want to create Scripts within a profile Package.
To change double-click behavior through a script:
1. Right-click the profile Package, and select New > UML > Profiles > Script.
2. Type a name for the Script, and then press the Enter key.
3. Open the Script's Property Pages, and then click the Items tab.
4. Click the Link button, select the item and diagram types for which you want to apply the double-click script, and then click OK.
5. Click the Settings tab.
6. In the Script Type list, select OnDoubleClick.
7. Click the Script tab.
8. In the box, type the script you want to run after an item has been double-clicked. If you want to change the text in a larger window with the Text tab available, click the Editor button. Write the script within the RunDoubleClickUI and CommitDoubleClick functions. For more information about working with scripts:
The script will be run whenever a valid item or diagram is double-clicked.
* 
When you apply a double-click script to an item, the default double-click action is not performed.
Was this helpful?