aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libbugzilla.js20
-rw-r--r--lib/logger.js4
-rw-r--r--lib/main.js10
-rw-r--r--lib/prompts.js2
-rw-r--r--lib/util.js2
5 files changed, 19 insertions, 19 deletions
diff --git a/lib/libbugzilla.js b/lib/libbugzilla.js
index 2829ecb..bc94aff 100644
--- a/lib/libbugzilla.js
+++ b/lib/libbugzilla.js
@@ -2,18 +2,18 @@
// http://www.opensource.org/licenses/mit-license.php
"use strict";
-var preferences = require("preferences-service");
+var preferences = require("sdk/preferences/service");
var prompts = require("prompts");
-var clipboard = require("clipboard");
-var tabs = require("tabs");
+var clipboard = require("sdk/clipboard");
+var tabs = require("sdk/tabs");
var logger = require("logger");
-var passUtils = require("passwords");
-var Request = require("request").Request;
-var selfMod = require("self");
-var urlMod = require("url");
-var xhrMod = require("xhr");
-var panelMod = require("panel");
-var myStorage = require("simple-storage");
+var passUtils = require("sdk/passwords");
+var Request = require("sdk/request").Request;
+var selfMod = require("sdk/self");
+var urlMod = require("sdk/url");
+var xhrMod = require("sdk/net/xhr");
+var panelMod = require("sdk/panel");
+var myStorage = require("sdk/simple-storage");
var JSONURLDefault = "https://fedorahosted.org/released"+
"/bugzilla-triage-scripts/Config_data.json";
diff --git a/lib/logger.js b/lib/logger.js
index cafef32..047c6cf 100644
--- a/lib/logger.js
+++ b/lib/logger.js
@@ -1,9 +1,9 @@
// Released under the MIT/X11 license
// http://www.opensource.org/licenses/mit-license.php
"use strict";
-var fileMod = require("file");
+var fileMod = require("sdk/io/file");
var prompts = require("prompts");
-var myStorage = require("simple-storage");
+var myStorage = require("sdk/simple-storage");
var EmptyLogsColor = "rgb(0, 255, 0)";
var FullLogsColor = "rgb(0, 40, 103)";
diff --git a/lib/main.js b/lib/main.js
index be91d55..a1163db 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -10,13 +10,13 @@
//http://ehsanakhgari.org/blog/2010-05-31/my-experience-jetpack-sdk#comment-1253
"use strict";
-var self = require("self");
-var pageMod = require("page-mod");
+var self = require("sdk/self");
+var pageMod = require("sdk/page-mod");
var libbz = require("libbugzilla");
-var tabs = require("tabs");
+var tabs = require("sdk/tabs");
var logger = require("logger");
var Message = require("util").Message;
-var contextMenu = require("context-menu");
+var contextMenu = require("sdk/context-menu");
/**
@@ -159,7 +159,7 @@ contextMenu.Item({
self.data.url('tweaks/checkin-context.js')
],
onMessage : function(comment) {
- require("clipboard").set(comment);
+ require("sdk/clipboard").set(comment);
}
});
//tabs.open("https://bugs.eclipse.org/bugs/show_bug.cgi?id=304933");
diff --git a/lib/prompts.js b/lib/prompts.js
index 18edaaf..80c0dcf 100644
--- a/lib/prompts.js
+++ b/lib/prompts.js
@@ -102,7 +102,7 @@ exports.promptYesNoCancel = function promptOKNoCancel(prompt) {
* documentation is https://developer.mozilla.org/en/NsIFilePicker
*/
exports.promptFileOpenPicker = function promptFilePicker(win) {
- var window = require("window-utils").activeWindow;
+ var window = require("sdk/windows").browserWindows.activeWindow;
var fp = Cc["@mozilla.org/filepicker;1"]
.createInstance(Ci.nsIFilePicker);
fp.init(window, "JSON File Open", Ci.nsIFilePicker.modeOpen);
diff --git a/lib/util.js b/lib/util.js
index 2a9bea3..51fa072 100644
--- a/lib/util.js
+++ b/lib/util.js
@@ -6,7 +6,7 @@
// ==============================================================
var Cc = require("chrome").Cc;
var Ci = require("chrome").Ci;
-var urlMod = require("url");
+var urlMod = require("sdk/url");
/**
* get parameters of URL as an object (name, value)