-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 37a1053
Showing
20 changed files
with
1,032 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/local/bin/perl | ||
# Copyright (c) 2010-2011 ActiveState Software Inc. | ||
# See the file LICENSE.txt for licensing information. | ||
|
||
Import( | ||
'cons', | ||
'platform', | ||
'productType', | ||
'buildFlavour', | ||
'sdkDir', | ||
'idlExportDir', | ||
'build', | ||
'mozBin', | ||
'unsiloedPythonExe', | ||
'mozVersion', | ||
'mozExtensionDir', | ||
'mozIdlIncludePath', | ||
); | ||
|
||
$cons->KoExt("koinstall"); | ||
|
||
# For quick development, comment out the "KoExt" call above and | ||
# use the following. The first time this is run, it will setup the | ||
# appropriate extension link. Then you need to *manually* do | ||
# a local "koext" dev build via: | ||
# python ../../sdk/bin/koext.py build --dev | ||
# You need to re-run "koext build --dev" every time you change or add | ||
# files that are built, e.g.: preprocessed files, idl files. However for | ||
# files that are not built -- e.g. XUL, CSS, JS, Python -- you don't | ||
# need to build at all, just re-start Komodo. | ||
# | ||
#$cons->KoExtSourceDevInstall(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
This is the old linting widget found in Komodo 9.2 and earlier versions. | ||
|
||
It has since been succeeded by new UI/UX. | ||
|
||
For those who liked the old UI/UX you can still use this addon. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
content klint jar:klint.jar!/content/ | ||
skin klint classic/1.0 jar:klint.jar!/skin/classic/ | ||
locale klint en-US jar:klint.jar!/locale/en-US/ | ||
|
||
overlay chrome://komodo/content/komodo.xul chrome://klint/content/klintOverlay.xul |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
/* | ||
# ***** BEGIN LICENSE BLOCK ***** | ||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1 | ||
# | ||
# The contents of this file are subject to the Mozilla Public License Version | ||
# 1.1 (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# http://www.mozilla.org/MPL/ | ||
# | ||
# Software distributed under the License is distributed on an "AS IS" basis, | ||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License | ||
# for the specific language governing rights and limitations under the | ||
# License. | ||
# | ||
# The Initial Developer of the Original Code is | ||
# Davide Ficano. | ||
# Portions created by the Initial Developer are Copyright (C) 2007 | ||
# the Initial Developer. All Rights Reserved. | ||
# | ||
# Contributor(s): | ||
# Davide Ficano <[email protected]> | ||
# | ||
# Alternatively, the contents of this file may be used under the terms of | ||
# either the GNU General Public License Version 2 or later (the "GPL"), or | ||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), | ||
# in which case the provisions of the GPL or the LGPL are applicable instead | ||
# of those above. If you wish to allow use of your version of this file only | ||
# under the terms of either the GPL or the LGPL, and not to allow others to | ||
# use your version of this file under the terms of the MPL, indicate your | ||
# decision by deleting the provisions above and replace them with the notice | ||
# and other provisions required by the GPL or the LGPL. If you do not delete | ||
# the provisions above, a recipient may use your version of this file under | ||
# the terms of any one of the MPL, the GPL or the LGPL. | ||
# | ||
# ***** END LICENSE BLOCK ***** | ||
*/ | ||
if (typeof(extensions) == 'undefined') { | ||
var extensions = {}; | ||
} | ||
|
||
if (typeof(extensions.dafizilla) == 'undefined') { | ||
extensions.dafizilla = {}; | ||
} | ||
|
||
if (typeof(extensions.dafizilla.klint) == 'undefined') { | ||
extensions.dafizilla.klint = {}; | ||
} | ||
|
||
extensions.dafizilla.klint.commonUtils = {}; | ||
|
||
(function() { | ||
var locale = Components.classes["@mozilla.org/intl/stringbundle;1"] | ||
.getService(Components.interfaces.nsIStringBundleService) | ||
.createBundle("chrome://klint/locale/klint.properties"); | ||
|
||
this.getLocalizedMessage = function(msg) { | ||
return locale.GetStringFromName(msg); | ||
}; | ||
|
||
this.getFormattedMessage = function(msg, ar) { | ||
return locale.formatStringFromName(msg, ar, ar.length); | ||
}; | ||
|
||
this.getObserverService = function () { | ||
const CONTRACTID_OBSERVER = "@mozilla.org/observer-service;1"; | ||
const nsObserverService = Components.interfaces.nsIObserverService; | ||
|
||
return Components.classes[CONTRACTID_OBSERVER].getService(nsObserverService); | ||
}; | ||
|
||
this.log = function(message) { | ||
ko.logging.getLogger("klint").warn((new Date()) + ": " + message); | ||
}; | ||
|
||
this.debug = function(message) { | ||
Components.classes["@mozilla.org/consoleservice;1"] | ||
.getService(Components.interfaces.nsIConsoleService) | ||
.logStringMessage(message); | ||
}; | ||
}).apply(extensions.dafizilla.klint.commonUtils); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0"?> | ||
|
||
<!DOCTYPE overlay SYSTEM "chrome://klint/locale/klint.dtd" > | ||
|
||
<overlay id="klintOverlay" | ||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> | ||
|
||
<menupopup id="context_lint"> | ||
<menuitem id="show_klint_tab" | ||
class="statusbar-label" | ||
oncommand="ko.uilayout.ensureTabShown('klint_tabpanel', true)" | ||
label="&klint.open.tab.title;" | ||
/> | ||
</menupopup> | ||
|
||
<ko-pane id="workspace_bottom_area"> | ||
<browser type="ko-widget" id="klint_tabpanel" | ||
label="&klint.tab.title;" | ||
short-label="&klint.tab.title.short;" | ||
src="chrome://klint/content/klintPane.xul" | ||
icon="koicon://ko-svg/chrome/icomoon/skin/warning2.svg"/> | ||
</ko-pane> | ||
|
||
</overlay> | ||
|
Oops, something went wrong.