mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 233085 - Add "Copy Qualified Name" to Locals view context menu.
Bumping version and locale version too. r=rginda@hacksrus.com
This commit is contained in:
parent
f6c1f8c030
commit
b26a67ef93
@ -33,8 +33,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
const __vnk_version = "0.9.80";
|
||||
const __vnk_requiredLocale = "0.9.78";
|
||||
const __vnk_version = "0.9.81";
|
||||
const __vnk_requiredLocale = "0.9.81";
|
||||
var __vnk_versionSuffix = "";
|
||||
|
||||
const __vnk_counter_url =
|
||||
|
@ -520,12 +520,18 @@ function lv_init ()
|
||||
|
||||
console.prefManager.addPrefs(prefs);
|
||||
|
||||
this.cmdary =
|
||||
[
|
||||
["copy-qual-name", cmdCopyQualName, 0]
|
||||
];
|
||||
|
||||
console.menuSpecs["context:locals"] = {
|
||||
getContext: this.getContext,
|
||||
items:
|
||||
[
|
||||
["change-value", {enabledif: "cx.parentValue"}],
|
||||
["watch-expr"],
|
||||
["copy-qual-name", {enabledif: "has('expression')"}],
|
||||
["-"],
|
||||
["set-eval-obj", {type: "checkbox",
|
||||
checkedif: "has('jsdValue') && " +
|
||||
@ -559,6 +565,17 @@ function lv_init ()
|
||||
this.stateTags = new Array();
|
||||
}
|
||||
|
||||
function cmdCopyQualName (e)
|
||||
{
|
||||
const CLIPBOARD_CTRID = "@mozilla.org/widget/clipboardhelper;1";
|
||||
const nsIClipboardHelper = Components.interfaces.nsIClipboardHelper;
|
||||
|
||||
var clipboardHelper =
|
||||
Components.classes[CLIPBOARD_CTRID].getService(nsIClipboardHelper);
|
||||
|
||||
clipboardHelper.copyString(e.expression);
|
||||
}
|
||||
|
||||
console.views.locals.clear =
|
||||
function lv_clear ()
|
||||
{
|
||||
|
@ -499,6 +499,10 @@ cmd.copy-frames.label = &Copy Selected Frames
|
||||
cmd.copy-frames.params = <jsd-frame> [<...>]
|
||||
cmd.copy-frames.help = Copy the selected frames to the clipboard.
|
||||
|
||||
cmd.copy-qual-name.label = Copy &Qualified Name
|
||||
cmd.copy-qual-name.params = <expression>
|
||||
cmd.copy-qual-name.help = Copies the qualified name of a variable to the clipboard.
|
||||
|
||||
cmd.cont.label = &Continue
|
||||
cmd.cont.key = VK_F5
|
||||
cmd.cont.tip = Continue debugging
|
||||
|
Loading…
Reference in New Issue
Block a user