Search
Preparing search index...
The search index is not available
Theia TypeDoc
Options
All
Public
Public/Protected
All
Inherited
Menu
Theia TypeDoc
core
ElectronMainMenuFactory
Class ElectronMainMenuFactory
Hierarchy
BrowserMainMenuFactory
ElectronMainMenuFactory
Index
Constructors
constructor
Properties
_menu
_toggled
Commands
command
Registry
context
context
Key
Service
core
Preferences
keybinding
Registry
menu
Provider
preferences
Service
Accessors
services
Methods
accelerator
For
create
Context
Menu
create
Electron
Context
Menu
create
Electron
Menu
Bar
create
Menu
Bar
create
Menu
Command
Registry
create
Menu
Widget
createOSXMenu
execute
fill
Menu
Bar
fill
Menu
Template
handle
Default
handle
Electron
Default
register
Menu
role
For
set
Menu
Bar
show
Menu
Bar
Constructors
constructor
new
Electron
Main
Menu
Factory
(
commandRegistry
:
CommandRegistry
, preferencesService
:
PreferenceService
, menuProvider
:
MenuModelRegistry
, keybindingRegistry
:
KeybindingRegistry
)
:
ElectronMainMenuFactory
Parameters
commandRegistry:
CommandRegistry
preferencesService:
PreferenceService
menuProvider:
MenuModelRegistry
keybindingRegistry:
KeybindingRegistry
Returns
ElectronMainMenuFactory
Properties
Protected
_menu
_menu
:
undefined
|
Menu
Protected
_toggled
Commands
_toggled
Commands
:
Set
<
string
>
= ...
Protected
Readonly
command
Registry
command
Registry
:
CommandRegistry
Protected
Readonly
context
context
:
ContextMenuContext
Protected
Readonly
context
Key
Service
context
Key
Service
:
ContextKeyService
Protected
Readonly
core
Preferences
core
Preferences
:
PreferenceProxy
<
CoreConfiguration
>
Protected
Readonly
keybinding
Registry
keybinding
Registry
:
KeybindingRegistry
Protected
Readonly
menu
Provider
menu
Provider
:
MenuModelRegistry
Protected
Readonly
preferences
Service
preferences
Service
:
PreferenceService
Accessors
Protected
services
get
services
(
)
:
MenuServices
Returns
MenuServices
Methods
Protected
accelerator
For
accelerator
For
(
keybinding
:
Keybinding
)
:
string
Return a user visible representation of a keybinding.
Parameters
keybinding:
Keybinding
Returns
string
create
Context
Menu
create
Context
Menu
(
path
:
MenuPath
, args
?:
any
[]
)
:
Menu
Parameters
path:
MenuPath
Optional
args:
any
[]
Returns
Menu
create
Electron
Context
Menu
create
Electron
Context
Menu
(
menuPath
:
MenuPath
, args
?:
any
[]
)
:
Menu
Parameters
menuPath:
MenuPath
Optional
args:
any
[]
Returns
Menu
create
Electron
Menu
Bar
create
Electron
Menu
Bar
(
)
:
null
|
Menu
Returns
null
|
Menu
create
Menu
Bar
create
Menu
Bar
(
)
:
MenuBarWidget
Returns
MenuBarWidget
Protected
create
Menu
Command
Registry
create
Menu
Command
Registry
(
menu
:
CompositeMenuNode
, args
?:
any
[]
)
:
MenuCommandRegistry
Parameters
menu:
CompositeMenuNode
args:
any
[]
= []
Returns
MenuCommandRegistry
create
Menu
Widget
create
Menu
Widget
(
menu
:
CompositeMenuNode
, options
:
IOptions
&
{
commands
:
MenuCommandRegistry
}
)
:
DynamicMenuWidget
Parameters
menu:
CompositeMenuNode
options:
IOptions
&
{
commands
:
MenuCommandRegistry
}
Returns
DynamicMenuWidget
Protected
createOSXMenu
createOSXMenu
(
)
:
MenuItemConstructorOptions
Returns
MenuItemConstructorOptions
Protected
execute
execute
(
command
:
string
, args
:
any
[]
)
:
Promise
<
void
>
Parameters
command:
string
args:
any
[]
Returns
Promise
<
void
>
Protected
fill
Menu
Bar
fill
Menu
Bar
(
menuBar
:
MenuBarWidget
)
:
void
Parameters
menuBar:
MenuBarWidget
Returns
void
Protected
fill
Menu
Template
fill
Menu
Template
(
items
:
MenuItemConstructorOptions
[]
, menuModel
:
CompositeMenuNode
, args
?:
any
[]
, options
?:
ElectronMenuOptions
)
:
MenuItemConstructorOptions
[]
Parameters
items:
MenuItemConstructorOptions
[]
menuModel:
CompositeMenuNode
args:
any
[]
= []
Optional
options:
ElectronMenuOptions
Returns
MenuItemConstructorOptions
[]
Protected
handle
Default
handle
Default
(
menuCommandRegistry
:
MenuCommandRegistry
, menuNode
:
MenuNode
, args
:
any
[]
)
:
void
Parameters
menuCommandRegistry:
MenuCommandRegistry
menuNode:
MenuNode
args:
any
[]
Returns
void
Protected
handle
Electron
Default
handle
Electron
Default
(
menuNode
:
MenuNode
, args
?:
any
[]
, options
?:
ElectronMenuOptions
)
:
MenuItemConstructorOptions
[]
Parameters
menuNode:
MenuNode
args:
any
[]
= []
Optional
options:
ElectronMenuOptions
Returns
MenuItemConstructorOptions
[]
Protected
register
Menu
register
Menu
(
menuCommandRegistry
:
MenuCommandRegistry
, menu
:
CompositeMenuNode
, args
:
any
[]
)
:
void
Parameters
menuCommandRegistry:
MenuCommandRegistry
menu:
CompositeMenuNode
args:
any
[]
Returns
void
Protected
role
For
role
For
(
id
:
string
)
:
undefined
|
"close"
|
"copy"
|
"cut"
|
"paste"
|
"zoom"
|
"window"
|
"undo"
|
"redo"
|
"pasteAndMatchStyle"
|
"delete"
|
"selectAll"
|
"reload"
|
"forceReload"
|
"toggleDevTools"
|
"resetZoom"
|
"zoomIn"
|
"zoomOut"
|
"togglefullscreen"
|
"minimize"
|
"help"
|
"about"
|
"services"
|
"hide"
|
"hideOthers"
|
"unhide"
|
"quit"
|
"startSpeaking"
|
"stopSpeaking"
|
"front"
|
"appMenu"
|
"fileMenu"
|
"editMenu"
|
"viewMenu"
|
"recentDocuments"
|
"toggleTabBar"
|
"selectNextTab"
|
"selectPreviousTab"
|
"mergeAllWindows"
|
"clearRecentDocuments"
|
"moveTabToNewWindow"
|
"windowMenu"
Parameters
id:
string
Returns
undefined
|
"close"
|
"copy"
|
"cut"
|
"paste"
|
"zoom"
|
"window"
|
"undo"
|
"redo"
|
"pasteAndMatchStyle"
|
"delete"
|
"selectAll"
|
"reload"
|
"forceReload"
|
"toggleDevTools"
|
"resetZoom"
|
"zoomIn"
|
"zoomOut"
|
"togglefullscreen"
|
"minimize"
|
"help"
|
"about"
|
"services"
|
"hide"
|
"hideOthers"
|
"unhide"
|
"quit"
|
"startSpeaking"
|
"stopSpeaking"
|
"front"
|
"appMenu"
|
"fileMenu"
|
"editMenu"
|
"viewMenu"
|
"recentDocuments"
|
"toggleTabBar"
|
"selectNextTab"
|
"selectPreviousTab"
|
"mergeAllWindows"
|
"clearRecentDocuments"
|
"moveTabToNewWindow"
|
"windowMenu"
set
Menu
Bar
set
Menu
Bar
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Protected
show
Menu
Bar
show
Menu
Bar
(
menuBar
:
DynamicMenuBarWidget
, preference
:
undefined
|
string
)
:
void
Parameters
menuBar:
DynamicMenuBarWidget
preference:
undefined
|
string
Returns
void
Exports
core
Application
Error
Application
Props
Application
Shell
Application
Shell
Layout
Migration
Error
Application
Shell
Mouse
Tracker
Backend
Application
Config
Binary
Buffer
Readable
Binary
Buffer
Readable
Buffered
Stream
Binary
Buffer
Readable
Stream
Binary
Buffer
Writeable
Stream
Bindable
Cancellation
Token
Color
Command
Common
Commands
Common
Menus
Composite
Tree
Element
Composite
Tree
Element
Node
Composite
Tree
Node
Console
Logger
Context
Key
Decorated
Tree
Node
Default
Json
Schema
Contribution
Description
Widget
Dialog
Dialog
Error
Diff
Uris
Disposable
Electron
Commands
Electron
Frontend
Application
Config
Electron
Main
Process
Argv
Electron
Menus
Electron
Messaging
Service
Electron
Text
Input
Context
Menu
Endpoint
Event
Event
Listener
Object
Expandable
Tree
Node
File
Uri
Focusable
Tree
Selection
Frontend
Application
Config
Frontend
Application
Preference
Config
Fuzzy
Search
Generator
Config
IPCEntry
Point
Iterators
Key
Key
Code
Key
Modifier
Key
Sequence
Keybinding
Keybinding
Contexts
Keybinding
Registry
Keybinding
Scope
Keyboard
Commands
Keys
OrKey
Codes
Label
Icon
Localization
Log
Level
Menu
Action
Messaging
Contribution
Messaging
Service
Mock
Tree
Model
Navigatable
Navigatable
Widget
Navigatable
Widget
Options
Npm
Registry
Props
OS
Override
Preference
Name
Preference
Data
Property
Preference
Provider
Data
Change
Preference
Schema
Preference
Schema
Properties
Preference
Scope
Prioritizeable
Progress
Message
Published
Node
Package
Quick
Pick
Item
Quick
Pick
Separator
Raw
Extension
Package
Readable
Render
Context
Menu
Options
Resource
Resource
Error
Saveable
Saveable
Widget
Search
Box
Search
Box
Debounce
Options
Search
Box
Props
Selectable
Tree
Node
Selection
Command
Handler
Severity
Shell
Layout
Restorer
Side
Panel
Special
Cases
Stateful
Widget
Styles
Tab
Bar
Delegator
Tab
Bar
Toolbar
Tab
Bar
Toolbar
Item
Text
Document
Content
Change
Delta
Toolbar
Aware
Tab
Bar
Tree
Element
Node
Tree
Iterator
Tree
Model
Impl
Tree
Node
Tree
Selection
Tree
Selection
Service
Impl
Tree
Source
Node
Tree
Widget
Tree
Widget
Selection
URIIcon
Reference
Unsafe
Widget
Utilities
Uri
Aware
Command
Handler
Uri
Selection
View
Container
View
Container
Layout
View
Container
Part
Wait
Until
Event
Web
Socket
Channel
Web
Socket
Channel
Connection
Widget
Decoration
Window
Commands
Zoom
Level
nls
Electron
Main
Menu
Factory
constructor
_menu
_toggled
Commands
command
Registry
context
context
Key
Service
core
Preferences
keybinding
Registry
menu
Provider
preferences
Service
services
accelerator
For
create
Context
Menu
create
Electron
Context
Menu
create
Electron
Menu
Bar
create
Menu
Bar
create
Menu
Command
Registry
create
Menu
Widget
createOSXMenu
execute
fill
Menu
Bar
fill
Menu
Template
handle
Default
handle
Electron
Default
register
Menu
role
For
set
Menu
Bar
show
Menu
Bar
Return a user visible representation of a keybinding.