/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
const Menu = require("resource://devtools/client/framework/menu.js");
loader.lazyRequireGetter( this, "MenuItem", "resource://devtools/client/framework/menu-item.js"
);
// Copy Declaration option. Visible only if there is a declaration element target. this.append( new MenuItem({
id: "changes-contextmenu-copy-declaration",
label: getStr("changes.contextmenu.copyDeclaration"),
click: () => this.onCopyDeclaration(declEl),
visible: !!declEl,
})
);
this.append( new MenuItem({
type: "separator",
})
);
}
// Select All option const menuitemSelectAll = new MenuItem({
id: "changes-contextmenu-select-all",
label: getStr("changes.contextmenu.selectAll"),
accesskey: getStr("changes.contextmenu.selectAll.accessKey"),
click: this.onSelectAll,
}); this.append(menuitemSelectAll);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.