groovy.ui.view.BasicMenuBar.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of groovy-all-minimal Show documentation
Show all versions of groovy-all-minimal Show documentation
Groovy: A powerful, dynamic language for the JVM
package groovy.ui.view
menuBar {
menu(text: 'File', mnemonic: 'F') {
menuItem(newFileAction)
menuItem(newWindowAction)
menuItem(openAction)
separator()
menuItem(saveAction)
menuItem(saveAsAction)
separator()
menuItem(printAction)
separator()
menuItem(exitAction)
}
menu(text: 'Edit', mnemonic: 'E') {
menuItem(undoAction)
menuItem(redoAction)
separator()
menuItem(cutAction)
menuItem(copyAction)
menuItem(pasteAction)
separator()
menuItem(findAction)
menuItem(findNextAction)
menuItem(findPreviousAction)
menuItem(replaceAction)
separator()
menuItem(selectAllAction)
}
menu(text: 'View', mnemonic: 'V') {
menuItem(clearOutputAction)
separator()
menuItem(largerFontAction)
menuItem(smallerFontAction)
separator()
checkBoxMenuItem(captureStdOutAction, selected: controller.captureStdOut)
checkBoxMenuItem(fullStackTracesAction, selected: controller.fullStackTraces)
checkBoxMenuItem(showToolbarAction, selected: controller.showToolbar)
}
menu(text: 'History', mnemonic: 'I') {
menuItem(historyPrevAction)
menuItem(historyNextAction)
}
menu(text: 'Script', mnemonic: 'S') {
menuItem(runAction)
menuItem(runSelectionAction)
separator()
menuItem(inspectLastAction)
menuItem(inspectVariablesAction)
}
menu(text: 'Help', mnemonic: 'H') {
menuItem(aboutAction)
}
}