Changeset d8da4b


Ignore:
Timestamp:
Nov 15, 2011, 7:46:08 PM (9 years ago)
Author:
rene <rene@…>
Branches:
ng_0.9
Children:
238a98
Parents:
bf505e
Message:

changed imports to prevent namespace pollution

Files:
3 added
1 deleted
43 edited

Legend:

Unmodified
Added
Removed
  • chrome.manifest

    rbf505e rd8da4b  
    1111locale  v_identity  ru-RU   locale/ru-RU/
    1212
     13overlay chrome://messenger/content/messenger.xul                chrome://v_identity/content/vI_overlay.xul
     14overlay chrome://messenger/content/messenger.xul                chrome://v_identity/content/vI_upgradeOverlay.xul
     15overlay chrome://messenger/content/messenger.xul                chrome://v_identity/content/vI_context.xul
     16
    1317overlay chrome://messenger/content/messengercompose/messengercompose.xul    chrome://v_identity/content/v_identity.xul
    1418overlay chrome://messenger/content/messengercompose/messengercompose.xul    chrome://v_identity/content/vI_context.xul
    15 overlay chrome://messenger/content/messenger.xul                chrome://v_identity/content/vI_upgradeOverlay.xul
    16 overlay chrome://messenger/content/messenger.xul                chrome://v_identity/content/vI_context.xul
     19
    1720overlay chrome://messenger/content/mailWindowOverlay.xul            chrome://v_identity/content/vI_getHeader.xul
    1821overlay chrome://v_identity/content/vI_rdfDataTree.xul  chrome://v_identity/content/vI_storageExtrasDataTreeOverlay.xul
  • content/accountManagerOverlays/vI_am-Overlay.js

    rbf505e rd8da4b  
    2323 * ***** END LICENSE BLOCK ***** */
    2424
     25Components.utils.import("resource://v_identity/vI_nameSpaceWrapper.js");
    2526virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) {
    2627function orig_onAccept() {};
  • content/accountManagerOverlays/vI_am-Overlay.xul

    rbf505e rd8da4b  
    2525
    2626<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
    27     <script type="application/x-javascript" src="chrome://v_identity/content/_overlayNameSpaceWrapper.js" />
    2827    <script type="application/x-javascript" src="chrome://v_identity/content/vI_am-Overlay.js"/>
    2928</overlay>
  • content/accountManagerOverlays/vI_am-smtpOverlay.js

    rbf505e rd8da4b  
    2323 * ***** END LICENSE BLOCK ***** */
    2424
     25Components.utils.import("resource://v_identity/vI_nameSpaceWrapper.js");
    2526virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) {
    2627var am_smtpOverlay = {
  • content/accountManagerOverlays/vI_am-smtpOverlay.xul

    rbf505e rd8da4b  
    2525
    2626<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
    27     <script type="application/x-javascript" src="chrome://v_identity/content/_overlayNameSpaceWrapper.js" />
    2827    <script type="application/x-javascript" src="chrome://v_identity/content/vI_am-smtpOverlay.js"/>
    2928</overlay>
  • content/bindings/vI_notificationBox.xml

    rbf505e rd8da4b  
    3838           xbl:inherits="value=label"
    3939           DOMAttrModified="if(event.attrName == 'value') this.value = event.newValue; return true;"
    40            onoverflow="notificationOverflow(this);" oncontextmenu="" />
     40           onoverflow="virtualIdentityExtension.notificationOverflow(this);" oncontextmenu="" />
    4141          <children/>
    4242        </xul:hbox>
  • content/bindings/vI_rdfAccountMismatchDialog.xml

    rbf505e rd8da4b  
    155155    <method name="_addIdentities">
    156156        <body><![CDATA[
    157         MyLog.debug("rdfAccountMismatchDialog.xml mismatchID-menupopup: _addIdentities.\n");
     157        virtualIdentityExtension.MyLog.debug("rdfAccountMismatchDialog.xml mismatchID-menupopup: _addIdentities.\n");
    158158        var AccountManager = Components.classes["@mozilla.org/messenger/account-manager;1"]
    159159            .getService(Components.interfaces.nsIMsgAccountManager);
     
    177177        <parameter name="server" />
    178178        <body><![CDATA[
    179             MyLog.debug("rdfAccountMismatchDialog.xml mismatchID-menupopup: _addSmtp.\n");
     179            virtualIdentityExtension.MyLog.debug("rdfAccountMismatchDialog.xml mismatchID-menupopup: _addSmtp.\n");
    180180            const XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
    181181            var menuitem = document.createElementNS(XUL_NS, "menuitem"); // create a new XUL menuitem
     
    190190    <method name="_addSmtpServers">
    191191        <body><![CDATA[
    192             MyLog.debug("rdfAccountMismatchDialog.xml mismatchID-menupopup: _addSmtpServers.\n");
     192            virtualIdentityExtension.MyLog.debug("rdfAccountMismatchDialog.xml mismatchID-menupopup: _addSmtpServers.\n");
    193193           
    194194            const XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
     
    209209    <constructor>
    210210        <![CDATA[       
    211         MyLog.debug("rdfAccountMismatchDialog.xml mismatchID-menupopup: constructor.\n");
     211        virtualIdentityExtension.MyLog.debug("rdfAccountMismatchDialog.xml mismatchID-menupopup: constructor.\n");
    212212        const XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
    213213        this.appendChild(document.createElementNS(XUL_NS, "menuseparator")); // create a new XUL menuseparator
  • content/bindings/v_identity.xml

    rbf505e rd8da4b  
    7575    <method name="popupshowing">
    7676            <body><![CDATA[
    77             MyLog.debug("** v_identity.xml vI_tooltipPopupset popupshowing.\n")
     77            virtualIdentityExtension.MyLog.debug("** v_identity.xml vI_tooltipPopupset popupshowing.\n")
    7878        if (!this._identityInfo) {
    7979            this._identityInfo =
     
    8585                    "</td>" +
    8686                "</tr></table>"
    87             MyLog.debug("** v_identity.xml added tooltip with id='" +  this.elem.identityData.id.key + "'\n")
     87            virtualIdentityExtension.MyLog.debug("** v_identity.xml added tooltip with id='" +  this.elem.identityData.id.key + "'\n")
    8888            this._tooltipBrowser.outputString = this._identityInfo;
    8989        }
    90         MyLog.debug("** v_identity.xml vI_tooltipPopupset popupshowing done.\n")
     90        virtualIdentityExtension.MyLog.debug("** v_identity.xml vI_tooltipPopupset popupshowing done.\n")
    9191        ]]></body>
    9292    </method>
     
    130130        this.label = this._identityDataStorage.combinedName;
    131131        this.value = this._identityDataStorage.id.key;
    132         MyLog.debug("** v_identity.xml fromPopupItem_clone constructor id='" + this.value + "'.\n")
     132        virtualIdentityExtension.MyLog.debug("** v_identity.xml fromPopupItem_clone constructor id='" + this.value + "'.\n")
    133133
    134134        this.description = this._identityDataStorage.sideDescription;
    135135        this.smtp = this._identityDataStorage.smtp.value;
    136         MyLog.debug("** v_identity.xml fromPopupItem_clone constructor smtp='" + this.smtp + "'.\n")
     136        virtualIdentityExtension.MyLog.debug("** v_identity.xml fromPopupItem_clone constructor smtp='" + this.smtp + "'.\n")
    137137        this.smtpStyle = "width:" + document.getElementById("smtp_server_list").clientWidth + "px;";
    138138        this._identityDataStorage.smtp.value;
     
    248248        <setter><![CDATA[
    249249        if (val == virtualIdentityExtension.NO_SMTP_TAG) return; // dont overwrite if not set
    250         MyLog.debug("** v_identity.xml smtp set to '" + val + "'\n")
     250        virtualIdentityExtension.MyLog.debug("** v_identity.xml smtp set to '" + val + "'\n")
    251251        var MenuItems = this._smtpPopup.childNodes
    252252        for (var index = 0; index < MenuItems.length; index++) {
     
    349349    <method name="command">
    350350        <body><![CDATA[
    351         MyLog.debug("\n** v_identity.xml msgIdentityCloneElem.doCommand() \n")
    352         MyLog.debug("\n** v_identity.xml msgIdentityCloneElem.doCommand() \n")
     351        virtualIdentityExtension.MyLog.debug("\n** v_identity.xml msgIdentityCloneElem.doCommand() \n")
     352        virtualIdentityExtension.MyLog.debug("\n** v_identity.xml msgIdentityCloneElem.doCommand() \n")
    353353        // copy selected Menu-Value from clone to orig.
    354         MyLog.debug("** v_identity.xmlcopy selected Menu-Value from clone to orig. Searching for id=" + this.selectedMenuItem.identityData.id.key + " \n")
     354        virtualIdentityExtension.MyLog.debug("** v_identity.xmlcopy selected Menu-Value from clone to orig. Searching for id=" + this.selectedMenuItem.identityData.id.key + " \n")
    355355        if ( this.selectedMenuItem.identityData.id.key != null ) {
    356356            var MenuItems = this._msgIdentityPopupElem.childNodes
     
    365365        }
    366366        this.identityData = this.selectedMenuItem.identityData.getDuplicate();
    367         MyLog.debug("\n** v_identity.xml msgIdentityCloneElem.doCommand() this.value=" + this.value + "\n");
     367        virtualIdentityExtension.MyLog.debug("\n** v_identity.xml msgIdentityCloneElem.doCommand() this.value=" + this.value + "\n");
    368368        // if current SMTP is empty, take the one from current Identity
    369369        if (this.identityData.smtp.hasNoDefinedSMTP()) {
     
    498498        <getter><![CDATA[
    499499            if (!this._msgIdentityElem.selectedItem) {
    500                 MyLog.debug("** v_identity.xml: msgIdentityElem.selectedItem not set, using first Menuitem\n");
     500                virtualIdentityExtension.MyLog.debug("** v_identity.xml: msgIdentityElem.selectedItem not set, using first Menuitem\n");
    501501                this._msgIdentityElem.selectedItem = this._msgIdentityPopupElem.firstChild
    502                 MyLog.debug("** v_identity.xml: msgIdentityElem.doCommand()\n");
     502                virtualIdentityExtension.MyLog.debug("** v_identity.xml: msgIdentityElem.doCommand()\n");
    503503                this._msgIdentityElem.doCommand();
    504504            }
     
    508508    <method name="blurEvent">
    509509            <body><![CDATA[
    510         MyLog.debug("\n** v_identity.xml blurEvent")
     510        virtualIdentityExtension.MyLog.debug("\n** v_identity.xml blurEvent")
    511511        this.inputEvent(); // timeout might prevent inputEvent to fire before blurEvent
    512512       
     
    517517    <method name="inputEvent">
    518518            <body><![CDATA[     
    519         MyLog.debug("\n** v_identity.xml inputEvent\n")
     519        virtualIdentityExtension.MyLog.debug("\n** v_identity.xml inputEvent\n")
    520520       
    521521        this.identityData.combinedName = this.label;
     
    527527    <method name="checkForVirtualIdentity">
    528528        <body><![CDATA[
    529         MyLog.debug("** v_identity.xml checkForVirtualIdentity: " + this.identityData.id.key + " '" + this.identityData.id.value + "'\n")
     529        virtualIdentityExtension.MyLog.debug("** v_identity.xml checkForVirtualIdentity: " + this.identityData.id.key + " '" + this.identityData.id.value + "'\n")
    530530        var existingIdentity = this.identityData.isExistingIdentity(false);
    531531       
     
    553553        ]]></getter>
    554554        <setter><![CDATA[
    555         MyLog.debug("** v_identity.xml identityData setter\n")
     555        virtualIdentityExtension.MyLog.debug("** v_identity.xml identityData setter\n")
    556556        if (!val) this._identityDataStorage = null
    557557        else {
     
    559559            this._identityDataStorage = val;
    560560            if (oldIdentityData) { // indicates that it's not first time after clean
    561                 MyLog.debug("** v_identity.xml previousID: fullName='" + oldIdentityData.fullName + "' email='" + oldIdentityData.email + "' smtp='" + oldIdentityData.smtp.key + "' id='" + oldIdentityData.id.key + "' existingID='" + oldIdentityData.existingID + "'\n");
    562                 MyLog.debug("** v_identity.xml newID: fullName='" + this._identityDataStorage.fullName + "' email='" + this._identityDataStorage.email + "' smtp='" + this._identityDataStorage.smtp.key + "' id='" + this._identityDataStorage.id.key + "' existingID='" + this._identityDataStorage.existingID + "'\n");
     561                virtualIdentityExtension.MyLog.debug("** v_identity.xml previousID: fullName='" + oldIdentityData.fullName + "' email='" + oldIdentityData.email + "' smtp='" + oldIdentityData.smtp.key + "' id='" + oldIdentityData.id.key + "' existingID='" + oldIdentityData.existingID + "'\n");
     562                virtualIdentityExtension.MyLog.debug("** v_identity.xml newID: fullName='" + this._identityDataStorage.fullName + "' email='" + this._identityDataStorage.email + "' smtp='" + this._identityDataStorage.smtp.key + "' id='" + this._identityDataStorage.id.key + "' existingID='" + this._identityDataStorage.existingID + "'\n");
    563563                if (!this._identityDataStorage.existingID && !this._identityDataStorage.combinedName)
    564564                    this._identityDataStorage.fullName = oldIdentityData.fullName;
     
    577577            this.description = this._identityDataStorage.sideDescription;
    578578            document.getAnonymousElementByAttribute(this, "anonid", "smtpServerListHbox").smtp = this._identityDataStorage.smtp.keyNice;
    579             MyLog.debug("** v_identity.xml resultingID: fullName='" + this._identityDataStorage.fullName + "' email='" + this._identityDataStorage.email + "' smtp='" + this._identityDataStorage.smtp.key + "' id='" + this._identityDataStorage.id.key + "' existingID='" + this._identityDataStorage.existingID + "'\n");           
    580         }
    581         MyLog.debug("** v_identity.xml identityData setter done.'\n")
     579            virtualIdentityExtension.MyLog.debug("** v_identity.xml resultingID: fullName='" + this._identityDataStorage.fullName + "' email='" + this._identityDataStorage.email + "' smtp='" + this._identityDataStorage.smtp.key + "' id='" + this._identityDataStorage.id.key + "' existingID='" + this._identityDataStorage.existingID + "'\n");           
     580        }
     581        virtualIdentityExtension.MyLog.debug("** v_identity.xml identityData setter done.'\n")
    582582        ]]></setter>
    583583    </property>
  • content/modules/plugins/conversation.js

    rbf505e rd8da4b  
     1Components.utils.import("resource://v_identity/vI_nameSpaceWrapper.js");
    12virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) {
    23
    3 Components.utils.import("resource://v_identity/vI_log.js");
    4 let Log = setupLogging("virtualIdentity.plugin.conversation");
     4let Log = vI.setupLogging("virtualIdentity.plugin.conversation");
    55
    66const {classes: Cc, interfaces: Ci, utils: Cu, results : Cr} = Components;
  • content/modules/vI_account.js

    rbf505e rd8da4b  
    2525/* this is now used as a module - there is no required reference to any other interface-elements in this code */
    2626
     27Components.utils.import("resource://v_identity/vI_nameSpaceWrapper.js");
    2728virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) {
    2829
    29 Components.utils.import("resource://v_identity/vI_log.js");
    30 let Log = setupLogging("virtualIdentity.account");
     30let Log = vI.setupLogging("virtualIdentity.account");
    3131
    3232function prepareSendMsg(vid, msgType, identityData, baseIdentity, recipients) {
  • content/modules/vI_identityData.js

    rbf505e rd8da4b  
    2323 * ***** END LICENSE BLOCK ***** */
    2424
     25Components.utils.import("resource://v_identity/vI_nameSpaceWrapper.js");
    2526virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) {
    2627 
    27 Components.utils.import("resource://v_identity/vI_log.js");
    28 let Log = setupLogging("virtualIdentity.identityData");
     28let Log = vI.setupLogging("virtualIdentity.identityData");
    2929
    3030function identityData(email, fullName, id, smtp, extras, sideDescription, existingID) {
  • content/modules/vI_rdfDatasource.js

    rbf505e rd8da4b  
    2525/* this is now used as a module - there is no required reference to any other interface-elements in this code */
    2626
     27Components.utils.import("resource://v_identity/vI_nameSpaceWrapper.js");
    2728virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) {
    2829
    29 Components.utils.import("resource://v_identity/vI_log.js");
    30 let Log = setupLogging("virtualIdentity.rdfDatasource");
     30let Log = vI.setupLogging("virtualIdentity.rdfDatasource");
    3131
    3232function rdfDatasource(rdfFileName, dontRegisterObserver) {
     
    888888                isNotFirstInputElement &&                           // and it is now not the first recipient entered
    889889                !localIdentities.identityDataCollection[0].equalsIdentity(currentIdentity, false).equal) {      // and this id is different than the current used one
    890                     StorageNotification.info(this.stringBundle.GetStringFromName("vident.smartIdentity.vIStorageCollidingIdentity"));
     890                    vI.StorageNotification.info(this.stringBundle.GetStringFromName("vident.smartIdentity.vIStorageCollidingIdentity"));
    891891//                  returnValue.result = "drop";    // this is the default value
    892892            }
  • content/modules/vI_smartIdentityCollection.js

    rbf505e rd8da4b  
    2525/* this is now used as a module - there is no required reference to any other interface-elements in this code */
    2626
     27Components.utils.import("resource://v_identity/vI_nameSpaceWrapper.js");
    2728virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) {
    2829
    29 Components.utils.import("resource://v_identity/vI_log.js");
    30 let Log = setupLogging("virtualIdentity.smartIdentityCollection");
     30let Log = vI.setupLogging("virtualIdentity.smartIdentityCollection");
    3131
    3232function smartIdentityCollection(msgHdr, preseletedID, currentIDisVID, newsgroup, recipients) {
     
    203203                        }
    204204                        catch(vErr) {
    205                             SmartReplyNotification.info(
     205                            vI.SmartReplyNotification.info(
    206206                                vI.main.elements.strings.getString("vident.smartIdentity.ignoreRegExp") +
    207207                                +filterList[i].replace(/\\/g,"\\\\") + " .");
  • content/prefDialog/vI_prefDialog.js

    rbf505e rd8da4b  
    2323 * ***** END LICENSE BLOCK ***** */
    2424
     25Components.utils.import("resource://v_identity/vI_nameSpaceWrapper.js");
    2526virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) {
    2627
  • content/prefDialog/vI_prefDialog.xml

    rbf505e rd8da4b  
    3434        <![CDATA[
    3535        with (virtualIdentityExtension.LIB) {
    36         MyLog.debug("prefDialog.xml identitySelector: constructor\n");
     36        virtualIdentityExtension.MyLog.debug("prefDialog.xml identitySelector: constructor\n");
    3737        var AccountManager = Components.classes["@mozilla.org/messenger/account-manager;1"]
    3838            .getService(Components.interfaces.nsIMsgAccountManager);
     
    6262        <setter><![CDATA[
    6363        with (virtualIdentityExtension.LIB) {
    64         MyLog.debug("prefDialog.xml identitySelector: setting value to '" + val + "'\n");
     64        virtualIdentityExtension.MyLog.debug("prefDialog.xml identitySelector: setting value to '" + val + "'\n");
    6565        var listItems = this.childNodes;
    6666        for (var index = 0; index < listItems.length; index++) {
    6767            var key = listItems[index].getAttribute("value");
    6868            listItems[index].checked = (val.indexOf(":" + key + ":") == -1);
    69             MyLog.debug("prefDialog.xml identitySelector: setting value, '" + listItems[index].getAttribute("value") + "' '" + listItems[index].checked + "' '" + listItems[index].getAttribute("checked") + "'\n")
     69            virtualIdentityExtension.MyLog.debug("prefDialog.xml identitySelector: setting value, '" + listItems[index].getAttribute("value") + "' '" + listItems[index].checked + "' '" + listItems[index].getAttribute("checked") + "'\n")
    7070        }
    7171        this._value = val;
     
    7474        <getter><![CDATA[
    7575        with (virtualIdentityExtension.LIB) {
    76         MyLog.debug("prefDialog.xml identitySelector: getting value\n");
     76        virtualIdentityExtension.MyLog.debug("prefDialog.xml identitySelector: getting value\n");
    7777        var returnVal = "";
    7878        var listItems = this.childNodes;
    7979        for (var index = 0; index < listItems.length; index++) {
    80             MyLog.debug("prefDialog.xml identitySelector: getting value, '" + listItems[index].getAttribute("value") + "' '" + listItems[index].checked + "' '" + listItems[index].getAttribute("checked") + "'\n");
     80            virtualIdentityExtension.MyLog.debug("prefDialog.xml identitySelector: getting value, '" + listItems[index].getAttribute("value") + "' '" + listItems[index].checked + "' '" + listItems[index].getAttribute("checked") + "'\n");
    8181            if (!listItems[index].checked) returnVal += " :" + listItems[index].getAttribute("value") + ": "
    8282        }
    83         MyLog.debug("prefDialog.xml identitySelector: getting value, result '" + returnVal + "'\n");
     83        virtualIdentityExtension.MyLog.debug("prefDialog.xml identitySelector: getting value, result '" + returnVal + "'\n");
    8484        return returnVal;
    8585        }
  • content/prefDialog/vI_prefDialog_FolderPicker.js

    rbf505e rd8da4b  
    4343 * ***** END LICENSE BLOCK ***** */
    4444
     45Components.utils.import("resource://v_identity/vI_nameSpaceWrapper.js");
    4546virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) {
    4647
  • content/prefDialog/vI_prefDialog_TB3.xul

    rbf505e rd8da4b  
    3939            title="&vI_prefDialog.dlgTitle.label;" >
    4040       
    41 <script type="application/x-javascript" src="chrome://v_identity/content/_overlayNameSpaceWrapper.js" />
    4241        <script type="application/x-javascript"
    4342            src="chrome://v_identity/content/prefDialog/vI_prefDialog_FolderPicker.js" />
  • content/prefDialog/vI_prefDialog_TB3FolderPicker.js

    rbf505e rd8da4b  
    4343 * ***** END LICENSE BLOCK ***** */
    4444
     45Components.utils.import("resource://v_identity/vI_nameSpaceWrapper.js");
    4546virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) {
    4647
  • content/vI_Dialog.js

    rbf505e rd8da4b  
    2323 * ***** END LICENSE BLOCK ***** */
    2424
     25Components.utils.import("resource://v_identity/vI_nameSpaceWrapper.js");
    2526virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) {
    2627var Dialog = {
  • content/vI_Dialog.xul

    rbf505e rd8da4b  
    4444    persist="height width">
    4545
    46     <script type="application/x-javascript" src="chrome://v_identity/content/_overlayNameSpaceWrapper.js" />
    4746    <script type="application/x-javascript" src="chrome://v_identity/content/vI_Dialog.js" />
    4847
  • content/vI_context.xul

    rbf505e rd8da4b  
    3636    <script type="application/x-javascript" src="chrome://v_identity/content/modules/vI_rdfDatasource.js" />
    3737    <script type="application/x-javascript">
    38     virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) {
     38    Components.utils.import("resource://v_identity/vI_nameSpaceWrapper.js");
     39    virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) {
    3940    var vI_context = {
    4041        prefroot : Components.classes["@mozilla.org/preferences-service;1"]
  • content/vI_getHeader.js

    rbf505e rd8da4b  
    2626 * ***** END LICENSE BLOCK ***** */
    2727
     28Components.utils.import("resource://v_identity/vI_nameSpaceWrapper.js");
     29Components.utils.import("resource://v_identity/stdlib/msgHdrUtils.js", virtualIdentityExtension);
    2830virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) {
    2931
    30 // XXX still missing implementation to select specific header by number and to display notification.
    31 Components.utils.import("resource://v_identity/stdlib/msgHdrUtils.js");
    32 let Log = setupLogging("virtualIdentity.getHeader");
     32let Log = vI.setupLogging("virtualIdentity.getHeader");
    3333
    3434// var storedHeaders = { };
     
    6969
    7070    getHeader: function() {
    71       clearDebugOutput();
     71      vI.clearDebugOutput();
    7272      if (!getHeader.headerToSearch) getHeader.prefObserverToSearchArray()
    7373     
    74       msgHdrGetHeaders(getHeader.hdr, function (aHeaders) {
     74      vI.msgHdrGetHeaders(getHeader.hdr, function (aHeaders) {
    7575        let label = "";
    7676        if (aHeaders.has("list-id")) {
     
    110110          }
    111111        }
    112         GetHeaderNotification.info(label);
     112        vI.GetHeaderNotification.info(label);
    113113      });
    114114    },
  • content/vI_getHeader.xul

    rbf505e rd8da4b  
    3535<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
    3636
    37 <script type="application/x-javascript" src="chrome://v_identity/content/_overlayNameSpaceWrapper.js" />
    3837<script type="application/x-javascript" src="chrome://v_identity/content/vI_getHeader.js"/>
    3938
  • content/vI_msgIdentityCloneTools.js

    rbf505e rd8da4b  
    2222    Contributor(s): Thunderbird Developers
    2323 * ***** END LICENSE BLOCK ***** */
     24Components.utils.import("resource://v_identity/vI_nameSpaceWrapper.js");
    2425virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) {
    2526
    26 Components.utils.import("resource://v_identity/stdlib/msgHdrUtils.js");
    27 let Log = setupLogging("virtualIdentity.msgIdentityCloneTools");
     27let Log = vI.setupLogging("virtualIdentity.msgIdentityCloneTools");
    2828
    2929var msgIdentityCloneTools = {   
  • content/vI_rdfAccountMismatchDialog.js

    rbf505e rd8da4b  
    2323 * ***** END LICENSE BLOCK ***** */
    2424
     25Components.utils.import("resource://v_identity/vI_nameSpaceWrapper.js");
    2526virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) {
    2627var rdfAccountMismatchDialog = {
  • content/vI_rdfAccountMismatchDialog.xul

    rbf505e rd8da4b  
    3535    ondialogcancel="virtualIdentityExtension.rdfAccountMismatchDialog.accept();"
    3636    zlevel="6">
    37     <script type="application/x-javascript" src="chrome://v_identity/content/_overlayNameSpaceWrapper.js" />
    3837    <script type="application/x-javascript" src="chrome://v_identity/content/vI_rdfAccountMismatchDialog.js" />
    3938   
  • content/vI_rdfDataEditor.js

    rbf505e rd8da4b  
    2323 * ***** END LICENSE BLOCK ***** */
    2424
     25Components.utils.import("resource://v_identity/vI_nameSpaceWrapper.js");
    2526virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) {
    2627var rdfDataEditor = {
  • content/vI_rdfDataEditor.xul

    rbf505e rd8da4b  
    3636    title="&vI_rdfDataEditor.dlgTitle.label;" >
    3737
    38 <script type="application/x-javascript" src="chrome://v_identity/content/_overlayNameSpaceWrapper.js" />
    3938<script type="application/x-javascript" src="chrome://v_identity/content/vI_rdfDataEditor.js" />
    4039<script type="application/x-javascript" src="chrome://v_identity/content/modules/vI_identityData.js" />
  • content/vI_rdfDataTree.js

    rbf505e rd8da4b  
    2929*/
    3030
     31Components.utils.import("resource://v_identity/vI_nameSpaceWrapper.js");
    3132virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) {
    3233
    33 Components.utils.import("resource://v_identity/stdlib/msgHdrUtils.js");
    34 let Log = setupLogging("virtualIdentity.rdfDataTree");
     34let Log = vI.setupLogging("virtualIdentity.rdfDataTree");
    3535
    3636//prepares an object for easy comparison against another. for strings, lowercases them
  • content/vI_rdfDataTree.xul

    rbf505e rd8da4b  
    6161        title="&vI_rdfDataTree.dlgTitle.label;">
    6262
    63 <script type="application/x-javascript" src="chrome://v_identity/content/_overlayNameSpaceWrapper.js" />
    6463<script type="application/x-javascript" src="chrome://v_identity/content/modules/vI_helper.js" />
    6564<script type="application/x-javascript" src="chrome://v_identity/content/modules/vI_identityData.js" />
  • content/vI_smartIdentity.js

    rbf505e rd8da4b  
    2323 * ***** END LICENSE BLOCK ***** */
    2424
     25Components.utils.import("resource://v_identity/vI_nameSpaceWrapper.js");
    2526virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) {
    2627
    27 Components.utils.import("resource://v_identity/vI_log.js");
    28 let Log = setupLogging("virtualIdentity.smartIdentity");
     28let Log = vI.setupLogging("virtualIdentity.smartIdentity");
    2929
    3030var smartIdentity = {
     
    147147            if (allIdentities.number > 1) label += " "
    148148                + vI.main.elements.strings.getString("vident.smartIdentity.moreThanOne");
    149             SmartReplyNotification.info(label + ".");
     149            vI.SmartReplyNotification.info(label + ".");
    150150        }
    151151        smartIdentity.__removeSmartIdentityFromRecipients(allIdentities, selectedValue);
     
    190190                    awSetInputAndPopupValue(input, "", popup, "addr_to", -1);
    191191                    awCleanupRows()
    192                     SmartReplyNotification.info(" " +   vI.main.elements.strings.getString("vident.smartIdentity.remRecipient"));
     192                    vI.SmartReplyNotification.info(" " +    vI.main.elements.strings.getString("vident.smartIdentity.remRecipient"));
    193193                    break;
    194194            }
  • content/vI_smartReplyDialog.js

    rbf505e rd8da4b  
    2323 * ***** END LICENSE BLOCK ***** */
    2424
     25Components.utils.import("resource://v_identity/vI_nameSpaceWrapper.js");
    2526virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) {
    2627var smartReply_dialog = {
  • content/vI_smartReplyDialog.xul

    rbf505e rd8da4b  
    3737    zlevel="6">
    3838
    39 <script type="application/x-javascript" src="chrome://v_identity/content/_overlayNameSpaceWrapper.js" />
    4039<script type="application/x-javascript" src="chrome://v_identity/content/vI_smartReplyDialog.js" />
    4140
  • content/vI_statusmenu.js

    rbf505e rd8da4b  
    2323 * ***** END LICENSE BLOCK ***** */
    2424
     25Components.utils.import("resource://v_identity/vI_nameSpaceWrapper.js");
    2526virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) {
    2627var statusmenu = {
  • content/vI_storage.js

    rbf505e rd8da4b  
    2828*/
    2929
     30Components.utils.import("resource://v_identity/vI_nameSpaceWrapper.js");
    3031virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) {
    3132
    3233Components.utils.import("resource://gre/modules/AddonManager.jsm");
    33 Components.utils.import("resource://v_identity/vI_log.js");
    34 let Log = setupLogging("virtualIdentity.storage");
     34let Log = vI.setupLogging("virtualIdentity.storage");
    3535
    3636var storage = {
     
    178178            document.getElementById("msgIdentity_clone").selectedMenuItem = selectedMenuItem;
    179179            if (document.getElementById("msgIdentity_clone").vid)
    180                 StorageNotification.info(vI.main.elements.strings.getString("vident.smartIdentity.vIStorageUsage") + ".");
     180                vI.StorageNotification.info(vI.main.elements.strings.getString("vident.smartIdentity.vIStorageUsage") + ".");
    181181        }
    182182    },
  • content/vI_storageExtras.js

    rbf505e rd8da4b  
    2222 * ***** END LICENSE BLOCK ***** */
    2323
     24Components.utils.import("resource://v_identity/vI_nameSpaceWrapper.js");
    2425virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) {
    2526
    26 Components.utils.import("resource://v_identity/stdlib/msgHdrUtils.js");
    27 let Log = setupLogging("virtualIdentity.storageExtras");
     27let Log = vI.setupLogging("virtualIdentity.storageExtras");
    2828
    2929function storageExtras_adapt(sourceId, targetId) {
  • content/vI_upgrade.js

    rbf505e rd8da4b  
    2323 * ***** END LICENSE BLOCK ***** */
    2424
     25Components.utils.import("resource://v_identity/vI_nameSpaceWrapper.js");
    2526virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) {
    2627
    27 Components.utils.import("resource://v_identity/stdlib/msgHdrUtils.js");
    28 let Log = setupLogging("virtualIdentity.upgrade");
     28let Log = vI.setupLogging("virtualIdentity.upgrade");
    2929
    3030var upgrade = {
  • content/vI_upgrade.xul

    rbf505e rd8da4b  
    4040    zlevel="6" onload="virtualIdentityExtension.upgrade.init(); virtualIdentityExtension.upgrade.prepare(document.getElementById('introPage'));" onunload="virtualIdentityExtension.upgrade.clean();" >
    4141
    42 <script type="application/x-javascript" src="chrome://v_identity/content/_overlayNameSpaceWrapper.js" />
    4342<script type="application/x-javascript" src="chrome://v_identity/content/vI_upgrade.js" />
    4443<script type="application/x-javascript" src="chrome://v_identity/content/modules/vI_account.js" />
  • content/vI_upgradeOverlay.js

    rbf505e rd8da4b  
    2323 * ***** END LICENSE BLOCK ***** */
    2424
     25Components.utils.import("resource://v_identity/vI_nameSpaceWrapper.js");
    2526virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) {
    2627var upgradeOverlay = {
  • content/vI_upgradeOverlay.xul

    rbf505e rd8da4b  
    3636
    3737<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
    38     <script type="application/x-javascript" src="chrome://v_identity/content/_overlayNameSpaceWrapper.js" />
    39 
    4038    <script type="application/x-javascript" src="chrome://v_identity/content/modules/vI_account.js" />
    4139    <script type="application/x-javascript" src="chrome://v_identity/content/modules/vI_rdfDatasource.js" />
  • content/v_identity.js

    rbf505e rd8da4b  
    2323 * ***** END LICENSE BLOCK ***** */
    2424
     25Components.utils.import("resource://v_identity/vI_nameSpaceWrapper.js");
    2526virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) {
    2627
    27 Components.utils.import("resource://v_identity/vI_log.js");
    28 let Log = setupLogging("virtualIdentity.main");
     28let Log = vI.setupLogging("virtualIdentity.main");
    2929
    3030var main = {
     
    297297   
    298298    reopen: function() {
    299         clearDebugOutput();
     299        vI.clearDebugOutput();
    300300        Log.debug("composeDialog reopened. (msgType " + gMsgCompose.type + ")\n")
    301301       
  • content/v_identity.xul

    rbf505e rd8da4b  
    3636  <overlay id="v_identity"
    3737          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
    38 <script type="application/x-javascript" src="chrome://v_identity/content/_overlayNameSpaceWrapper.js" />
    3938
    4039<script type="application/x-javascript" src="chrome://v_identity/content/modules/vI_helper.js" />
  • modules/vI_log.js

    rbf505e rd8da4b  
    152152
    153153function notificationOverflow(elem) {
    154   currentWindow = Cc["@mozilla.org/appshell/window-mediator;1"]
     154  let currentWindow = Cc["@mozilla.org/appshell/window-mediator;1"]
    155155    .getService(Ci.nsIWindowMediator)
    156156    .getMostRecentWindow(null);
     
    218218
    219219function clearDebugOutput() {
    220   currentWindow = Cc["@mozilla.org/appshell/window-mediator;1"]
     220  let currentWindow = Cc["@mozilla.org/appshell/window-mediator;1"]
    221221    .getService(Ci.nsIWindowMediator)
    222222    .getMostRecentWindow(null);
    223   obj_debugBox = currentWindow.document.getElementById("vIDebugBox");
     223  let obj_debugBox = currentWindow.document.getElementById("vIDebugBox");
    224224  if (obj_debugBox)
    225225    obj_debugBox.clear();
    226   obj_notificationBox = currentWindow.document.getElementById("vINotification");
     226  let obj_notificationBox = currentWindow.document.getElementById("vINotification");
    227227  if (obj_notificationBox)
    228228    obj_notificationBox.removeAllNotifications(true);
Note: See TracChangeset for help on using the changeset viewer.