/** * Constructor. * * @param l label of the menu item * @param k key shortcut * @param h help string * @param d requires a database to be opened * @param c displays a checkbox, indicating the current selection state */ GUICommands(final String l, final String k, final String h, final boolean d, final boolean c) { label = l; key = k; help = BaseXLayout.addShortcut(h, k); data = d; checked = c; }