Customization > Extensibility Through Profiles, Stereotypes, Tag Definitions and Scripts > Advanced extensibility through stereotype scripts and script items > Extending double-click behavior through stereotypes and scripts > Overview of extending double-click behavior through stereotypes and scripts
  
Overview of extending double-click behavior through stereotypes and scripts
You can change the behavior of an item when it is double-clicked, by making Modeler run a script.
This is useful when you want to introduce non-standard behavior for the double-clicking of an item or diagram.
By default, double-clicking an item in an explorer type pane expands or collapses the item, double-clicking an item in other panes does nothing, double-clicking a diagram opens it.
When you apply a double-click script to an item, the default double-click action is not performed. Through the double-click script, you can specify an alternative behavior. For example, you can make a double-click open a child diagram.
You can apply double-click scripts to items and diagrams through Stereotypes or Scripts:
If you want a double-click script to apply only to specific items or diagrams, use a Stereotype to define and apply the double-click script.
* 
The 'Apply to All Objects of Associated Model Item Types' option does not apply double-lick scripts to any diagrams
If you want a double-click script to apply to all items or diagrams of a specified type, such as all Classes or Class Diagrams, use a Script.
If an item has more than one double-click script applied, only the first script is run.