GraphPluginInstance.onFileMenu method
GraphPluginInstance › onFileMenu
Unofficial
Add graph-related items to the file context menu.Signature:
onFileMenu(menu: Menu, file: TAbstractFile, source: string, leaf?: WorkspaceLeaf | undefined): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| menu | Menu | The context menu to add items to. |
| file | TAbstractFile | The file associated with the menu. |
| source | string | The source of the menu event. |
| leaf? | WorkspaceLeaf | undefined | The workspace leaf, if available. |
Returns: void