Skip to content

Commit

Permalink
Partial support for Firefox.
Browse files Browse the repository at this point in the history
  • Loading branch information
titoBouzout committed Sep 10, 2011
1 parent 18e3609 commit f731f77
Show file tree
Hide file tree
Showing 10 changed files with 90 additions and 45 deletions.
3 changes: 1 addition & 2 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
rm garden.xpi
zip -x \*.git\* -r garden.xpi *
komodo garden.xpi
zip -x \*.git\* -r garden.xpi *
34 changes: 19 additions & 15 deletions chrome.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,27 @@ content asynchremote chrome/

resource up.tito.asynchremote chrome/js/API/

overlay chrome://komodo/content/komodo.xul chrome://asynchremote/content/xul/_includes.xul
overlay chrome://komodo/content/komodo.xul chrome://asynchremote/content/xul/_includes.xul
overlay chrome://browser/content/browser.xul chrome://asynchremote/content/xul/_includes.xul

overlay chrome://komodo/content/komodo.xul chrome://asynchremote/content/xul/ko.toolbar.xul
overlay chrome://asynchremote/content/xul/_includes.xul chrome://asynchremote/content/xul/gardenKomodo.xul
overlay chrome://asynchremote/content/xul/_includes.xul chrome://asynchremote/content/xul/gardenFirefox.xul

overlay chrome://komodo/content/komodo.xul chrome://asynchremote/content/xul/garden.xul
overlay chrome://komodo/content/komodo.xul chrome://asynchremote/content/xul/tree.toolbar.top.xul
overlay chrome://komodo/content/komodo.xul chrome://asynchremote/content/xul/tree.toolbar.bottom.xul
overlay chrome://komodo/content/komodo.xul chrome://asynchremote/content/xul/tree.xul
overlay chrome://komodo/content/komodo.xul chrome://asynchremote/content/xul/context.xul
overlay chrome://komodo/content/komodo.xul chrome://asynchremote/content/xul/log.xul
overlay chrome://asynchremote/content/xul/_includes.xul chrome://asynchremote/content/xul/garden.xul
overlay chrome://asynchremote/content/xul/_includes.xul chrome://asynchremote/content/xul/tree.toolbar.top.xul
overlay chrome://asynchremote/content/xul/_includes.xul chrome://asynchremote/content/xul/tree.toolbar.bottom.xul
overlay chrome://asynchremote/content/xul/_includes.xul chrome://asynchremote/content/xul/tree.xul
overlay chrome://asynchremote/content/xul/_includes.xul chrome://asynchremote/content/xul/context.xul
overlay chrome://asynchremote/content/xul/_includes.xul chrome://asynchremote/content/xul/log.xul

style chrome://komodo/content/komodo.xul chrome://asynchremote/content/css/context.css
style chrome://komodo/content/komodo.xul chrome://asynchremote/content/css/files.css
style chrome://komodo/content/komodo.xul chrome://asynchremote/content/css/groups.css
style chrome://komodo/content/komodo.xul chrome://asynchremote/content/css/log.css
style chrome://komodo/content/komodo.xul chrome://asynchremote/content/css/toolbar.css
style chrome://komodo/content/komodo.xul chrome://asynchremote/content/css/tree.css
overlay chrome://asynchremote/content/xul/_includes.xul chrome://asynchremote/content/xul/ko.toolbar.xul

style chrome://asynchremote/content/xul/_includes.xul chrome://asynchremote/content/css/context.css
style chrome://asynchremote/content/xul/_includes.xul chrome://asynchremote/content/css/files.css
style chrome://asynchremote/content/xul/_includes.xul chrome://asynchremote/content/css/groups.css
style chrome://asynchremote/content/xul/_includes.xul chrome://asynchremote/content/css/log.css
style chrome://asynchremote/content/xul/_includes.xul chrome://asynchremote/content/css/toolbar.css
style chrome://asynchremote/content/xul/_includes.xul chrome://asynchremote/content/css/tree.css

#Windows Styles https://developer.mozilla.org/en/OS_TARGET
style chrome://komodo/content/komodo.xul chrome://asynchremote/content/css/toolbar-winnt.css os=winnt
style chrome://asynchremote/content/xul/_includes.xul chrome://asynchremote/content/css/toolbar-winnt.css os=winnt
8 changes: 4 additions & 4 deletions chrome/js/classes/instances.js
Original file line number Diff line number Diff line change
Expand Up @@ -1387,15 +1387,15 @@ GardenInstances.prototype = {
//run in a thread and then back to main thread because we need to wait for the file to download
if(!aProcess.stopped())
{
var AsynchRemoteConnection = this;
var koRemote = this;
myAPI.thread().runThread(function(){
if(myAPI.file().exists(aTemporalDestination))
myAPI.thread().runMain(function(){
if(
myAPI.file().read(aLocalFileToCompare) ==
myAPI.file().read(aTemporalDestination)
)
AsynchRemoteConnection.log('sucess', 'The local and remote file "'+aFile+'" are identical', aProcess.id);
koRemote.log('sucess', 'The local and remote file "'+aFile+'" are identical', aProcess.id);
else
ko.fileutils.showDiffs(aLocalFileToCompare, aTemporalDestination);
});
Expand Down Expand Up @@ -1794,9 +1794,9 @@ GardenInstances.prototype = {
},
cleanCacheOverWrite:function()
{
var AsynchRemoteConnection = this;
var koRemote = this;
myAPI.thread().runThread(function(){
garden.shared.obj.removeWithPrefix('overWrite.'+AsynchRemoteConnection.server+'.');
garden.shared.obj.removeWithPrefix('overWrite.'+koRemote.server+'.');
}, this.thread);
this.log('status', 'Cleaned overwrite settings', 0);
},
Expand Down
32 changes: 19 additions & 13 deletions chrome/js/drivers/komodo.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,29 @@
const mRCService = Components


function koRemote()
{
this.RCService = Components
.classes["@activestate.com/koRemoteConnectionService;1"]
.getService(
Components
.interfaces
.koIRemoteConnectionService
);

function AsynchRemoteConnection(){}
}

AsynchRemoteConnection.prototype = {
koRemote.prototype = {

driverRegister: function()
{
gardenDrivers.register(
'komodo',
'Komodo (ftp, ftps, sftp, scp)',
AsynchRemoteConnection,
'remote'
);
if(myAPI.app().isKomodo())
{
gardenDrivers.register(
'komodo',
'Komodo (ftp, ftps, sftp, scp)',
koRemote,
'remote'
);
}
},
driverInit:function()
{
Expand All @@ -32,7 +38,7 @@ AsynchRemoteConnection.prototype = {
},
driverGetEntries:function()
{
var servers = mRCService.getServerInfoList({});
var servers = this.RCService.getServerInfoList({});
var entries = [];
var i = 0;
var prefix = '';
Expand All @@ -56,7 +62,7 @@ AsynchRemoteConnection.prototype = {
connect: function(aNumTry, aKeepAliveRequest)
{
if(!this.connection)
this.connection = mRCService.getConnectionUsingServerAlias(this.aData.alias);
this.connection = this.RCService.getConnectionUsingServerAlias(this.aData.alias);
return this.connection;
},
keepAlive:function()
Expand Down Expand Up @@ -127,4 +133,4 @@ AsynchRemoteConnection.prototype = {
}
};

garden.registerDriverClass(AsynchRemoteConnection);
garden.registerDriverClass(koRemote);
9 changes: 4 additions & 5 deletions chrome/xul/garden.xul
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

<hbox id="komodo-hbox">

<splitter
state="open"
ordinal="1"
persist="state"
collapse="after"
ondblclick="garden.sidebarResize(event)"
style="padding:0px;margin:0px;width:5px;"/>
style="padding:0px;margin:0px;width:5px;"
orient="horizontal"
id="g-box-splitter"
/>
<!-- container -->
<vbox persist="width height collapsed" width="210" id="g-box">

Expand All @@ -26,6 +27,4 @@

<vbox id="g-tree-template" collapsed="true"/>

</hbox>

</overlay>
14 changes: 14 additions & 0 deletions chrome/xul/gardenFirefox.xul
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

<hbox id="browser">
<splitter id="g-box-splitter"/>
<vbox id="g-box"/>
<vbox id="g-tree-template"/>
</hbox>

<popupset id="mainPopupSet">
<popupset id="extensionPopupSet"/>
</popupset>

</overlay>
10 changes: 10 additions & 0 deletions chrome/xul/gardenKomodo.xul
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

<hbox id="komodo-hbox">
<splitter id="g-box-splitter"/>
<vbox id="g-box"/>
<vbox id="g-tree-template"/>
</hbox>

</overlay>
2 changes: 1 addition & 1 deletion chrome/xul/tree.xul
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
seltype="multiple"

hidecolumnpicker="true"

editable="true"
class="g-tree"
context="g-tree-context"

Expand Down
Binary file modified garden.xpi
Binary file not shown.
23 changes: 18 additions & 5 deletions install.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,36 @@
<em:creator>Tito</em:creator>
<em:iconURL>chrome://asynchremote/content/icons/icon.png</em:iconURL>
<em:homepageURL>https://github.com/titoBouzout/komodo-garden</em:homepageURL>

<!-- Komodo Edit's uuid -->
<em:targetApplication>
<Description>
<!-- Komodo Edit's uuid -->
<em:id>{b1042fb5-9e9c-11db-b107-000d935d3368}</em:id>
<em:minVersion>6.0</em:minVersion>
<em:maxVersion>7.*</em:maxVersion>
<em:maxVersion>30000000</em:maxVersion>
</Description>
</em:targetApplication>


<!-- Komodo IDE -->
<em:targetApplication>
<Description>
<!-- Komodo IDE -->
<em:id>{36E66FA0-F259-11D9-850E-000D935D3368}</em:id>
<em:minVersion>6.0</em:minVersion>
<em:maxVersion>7.*</em:maxVersion>
<em:maxVersion>30000000</em:maxVersion>
</Description>
</em:targetApplication>

<!-- Firefox -->
<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>4.0</em:minVersion>
<em:maxVersion>30000000</em:maxVersion>
</Description>
</em:targetApplication>

</Description>



</RDF>

0 comments on commit f731f77

Please sign in to comment.