Skip to content

Commit

Permalink
Merge branch 'beta' of github.com:ajaxorg/cloud9 into issues/1437
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben Daniels committed Jun 8, 2012
2 parents 119f3af + dd5d5b8 commit 4974660
Show file tree
Hide file tree
Showing 33 changed files with 248 additions and 5,204 deletions.
3 changes: 2 additions & 1 deletion plugins-client/cloud9.core/www/core/ide.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ define(function(require, exports, module) {
this.workspaceId = window.cloud9config.workspaceId;
this.readonly = window.cloud9config.readonly;
this.projectName = window.cloud9config.projectName;

this.local = window.cloud9config.local;

this.loggedIn = true;

this.onLine = false;
Expand Down
14 changes: 4 additions & 10 deletions plugins-client/ext.panels/panels.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,12 @@ module.exports = ext.register("ext/panels/panels", {
}
});

var setDefaultPanel = function (e){
// for local version
if (ide.dispatchEvent("panels.activateDefault") !== false) {
var active = settings.model.queryValue("auto/panels/@active");
if ((panelExt["default"] && !active || active == panelExt.path)
&& (!e || e.currentTarget.workspaceId !== "generic"))
_self.activate(panelExt, null, true);
if ((panelExt["default"] && !active || active == panelExt.path))
_self.activate(panelExt, null, true);
}

if (cloud9config.local) {
ide.addEventListener("init.ext/remotecontrol/remotecontrol", setDefaultPanel);
}
else
setDefaultPanel();
},

animate : function(win, toWin, toWidth){
Expand Down
6 changes: 6 additions & 0 deletions plugins-client/ext.remotecontrol/remotecontrol.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ module.exports = ext.register("ext/remotecontrol/remotecontrol", {
init : function(amlNode) {
var _self = this;

ide.addEventListener("panels.activateDefault", function (e) {
if (e.currentTarget.workspaceId === "generic")
return false;
return true;
});

ide.addEventListener("socketMessage", function (event) {
_self.loadFileOrFolder(event);
});
Expand Down
2 changes: 1 addition & 1 deletion plugins-client/ext.searchinfiles/searchinfiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ module.exports = ext.register("ext/searchinfiles/searchinfiles", apf.extend({
selectstyle : "[{require('core/settings').model}::editors/code/@selectstyle]",
activeline : "[{require('core/settings').model}::editors/code/@activeline]",
gutterline : "[{require('core/settings').model}::editors/code/@gutterline]",
showinvisibles : "[{require('core/settings').model}::editors/code/@showinvisibles]",
showinvisibles : "false",
showprintmargin : "false",
softtabs : "[{require('core/settings').model}::editors/code/@softtabs]",
tabsize : "[{require('core/settings').model}::editors/code/@tabsize]",
Expand Down
37 changes: 27 additions & 10 deletions plugins-client/ext.themes/themes.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,22 +80,39 @@ module.exports = ext.register("ext/themes/themes", {
_self.setThemedGUI(path);
}, 10);
}
// fixes a problem with Ace architect loading /lib/ace,
// creating a conflict with themes
if (theme.isDark === undefined) {
return setTimeout(function(){
_self.setThemedGUI(path);
}, 10);
}

ide.dispatchEvent("theme.change", {theme: theme, path: path});

var div = hboxMain.$ext;
var editorDiv = hboxMain.$ext;
var tabsDiv = tabEditors.$buttons;
editorDiv.setAttribute("id", "editorDiv");
tabsDiv.setAttribute("id", "tabsDiv");

if (theme.isDark)
apf.setStyleClass(div, "dark");
else
apf.setStyleClass(div, "", ["dark"]);
if (theme.isDark) {
apf.setStyleClass(editorDiv, "dark");
apf.setStyleClass(tabsDiv, "dark");
}
else {
apf.setStyleClass(editorDiv, "", ["dark"]);
apf.setStyleClass(tabsDiv, "", ["dark"]);
}

var cssClass = theme.cssClass;

if (_self.lastTheme)
apf.setStyleClass(div, "", [_self.lastTheme]);
if (_self.lastTheme) {
apf.setStyleClass(editorDiv, "", [_self.lastTheme]);
apf.setStyleClass(tabsDiv, "", [_self.lastTheme]);
}

apf.setStyleClass(div, _self.lastTheme = cssClass);
apf.setStyleClass(editorDiv, _self.lastTheme = cssClass);
apf.setStyleClass(tabsDiv, _self.lastTheme = cssClass);

if (_self.loaded[path])
return;
Expand All @@ -108,8 +125,8 @@ module.exports = ext.register("ext/themes/themes", {
apf.importStylesheet([
["." + cssClass + " .ace_editor",
"border: 0 !important;"],
["body." + cssClass + " > .vbox, "
+ "." + cssClass + " .editor_tab .curbtn .tab_middle, "
["#editorDiv." + cssClass + " > .vbox, "
+ "#tabsDiv." + cssClass + " .curbtn .tab_middle, "
+ "." + cssClass + " .codeditorHolder, "
+ "." + cssClass + " .winGoToFile, "
+ "." + cssClass + " .revisionsBar .topbar, "
Expand Down
1 change: 1 addition & 0 deletions plugins-client/ext.tree/tree.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
trFiles.selected ? trFiles.selected.parentNode : trFiles.getFirstTraverseNode());
apf.clipboard.store = store;
">Duplicate</a:item>
<a:divider />
<a:item match="[file|folder[not(@root)]]" command="cut">Cut</a:item>
<a:item match="[file|folder[not(@root)]]" command="copy">Copy</a:item>
<a:item match="[file|folder|project]" disabled="{apf.clipboard.empty}" command="paste">Paste</a:item>
Expand Down
4 changes: 4 additions & 0 deletions plugins-client/lib.ace/www/theme/theme-clouds.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ exports.cssText = "\
background: #FFFBD1;\
}\
\
.ace-clouds .ace_gutter_active_line {\
background-color : #dcdcdc;\
}\
\
.ace-clouds .ace_marker-layer .ace_selected_word {\
border: 1px solid #BDD5FC;\
}\
Expand Down
4 changes: 4 additions & 0 deletions plugins-client/lib.ace/www/theme/theme-clouds_midnight.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ exports.cssText = "\
background: rgba(215, 215, 215, 0.031);\
}\
\
.ace-clouds-midnight .ace_gutter_active_line {\
background-color : #dcdcdc;\
}\
\
.ace-clouds-midnight .ace_marker-layer .ace_selected_word {\
border: 1px solid #000000;\
}\
Expand Down
4 changes: 4 additions & 0 deletions plugins-client/lib.ace/www/theme/theme-cobalt.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ exports.cssText = "\
background: rgba(0, 0, 0, 0.35);\
}\
\
.ace-cobalt .ace_gutter_active_line {\
background-color : #dcdcdc;\
}\
\
.ace-cobalt .ace_marker-layer .ace_selected_word {\
border: 1px solid rgba(179, 101, 57, 0.75);\
}\
Expand Down
4 changes: 4 additions & 0 deletions plugins-client/lib.ace/www/theme/theme-dawn.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ exports.cssText = "\
background: rgba(36, 99, 180, 0.12);\
}\
\
.ace-dawn .ace_gutter_active_line {\
background-color : #dcdcdc;\
}\
\
.ace-dawn .ace_marker-layer .ace_selected_word {\
border: 1px solid rgba(39, 95, 255, 0.30);\
}\
Expand Down
4 changes: 4 additions & 0 deletions plugins-client/lib.ace/www/theme/theme-idle_fingers.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ exports.cssText = "\
background: #353637;\
}\
\
.ace-idle-fingers .ace_gutter_active_line {\
background-color : #dcdcdc;\
}\
\
.ace-idle-fingers .ace_marker-layer .ace_selected_word {\
border: 1px solid rgba(90, 100, 126, 0.88);\
}\
Expand Down
4 changes: 4 additions & 0 deletions plugins-client/lib.ace/www/theme/theme-kr_theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ exports.cssText = "\
background: #38403D;\
}\
\
.ace-kr-theme .ace_gutter_active_line {\
background-color : #dcdcdc;\
}\
\
.ace-kr-theme .ace_marker-layer .ace_selected_word {\
border: 1px solid rgba(170, 0, 255, 0.45);\
}\
Expand Down
4 changes: 4 additions & 0 deletions plugins-client/lib.ace/www/theme/theme-merbivore.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ exports.cssText = "\
background: #333435;\
}\
\
.ace-merbivore .ace_gutter_active_line {\
background-color : #dcdcdc;\
}\
\
.ace-merbivore .ace_marker-layer .ace_selected_word {\
border: 1px solid #454545;\
}\
Expand Down
4 changes: 4 additions & 0 deletions plugins-client/lib.ace/www/theme/theme-merbivore_soft.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ exports.cssText = "\
background: #333435;\
}\
\
.ace-merbivore-soft .ace_gutter_active_line {\
background-color : #dcdcdc;\
}\
\
.ace-merbivore-soft .ace_marker-layer .ace_selected_word {\
border: 1px solid #494949;\
}\
Expand Down
4 changes: 4 additions & 0 deletions plugins-client/lib.ace/www/theme/theme-mono_industrial.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ exports.cssText = "\
background: rgba(12, 13, 12, 0.25);\
}\
\
.ace-mono-industrial .ace_gutter_active_line {\
background-color : #dcdcdc;\
}\
\
.ace-mono-industrial .ace_marker-layer .ace_selected_word {\
border: 1px solid rgba(145, 153, 148, 0.40);\
}\
Expand Down
6 changes: 3 additions & 3 deletions plugins-client/lib.ace/www/theme/theme-monokai.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ exports.cssText = "\
border: 1px solid #49483E;\
}\
\
.ace-monokai .ace_marker-layer .ace_active_line{\
.ace-monokai .ace_marker-layer .ace_active_line {\
background: #49483E;\
}\
.ace-monokai .ace_gutter_active_line{\
background: #191916;\
.ace-monokai .ace_gutter_active_line {\
background-color: #191916;\
}\
\
.ace-monokai .ace_marker-layer .ace_selected_word {\
Expand Down
4 changes: 4 additions & 0 deletions plugins-client/lib.ace/www/theme/theme-pastel_on_dark.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ exports.cssText = "\
background: rgba(255, 255, 255, 0.031);\
}\
\
.ace-pastel-on-dark .ace_gutter_active_line {\
background-color : #dcdcdc;\
}\
\
.ace-pastel-on-dark .ace_marker-layer .ace_selected_word {\
border: 1px solid rgba(221, 240, 255, 0.20);\
}\
Expand Down
5 changes: 3 additions & 2 deletions plugins-client/lib.ace/www/theme/theme-solarized_dark.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,9 @@ exports.cssText = "\
.ace-solarized-dark .ace_marker-layer .ace_active_line {\
background: #073642;\
}\
.ace-solarized-dark .ace_gutter_active_line{\
background: #0d3440;\
\
.ace-solarized-dark .ace_gutter_active_line {\
background-color: #0d3440;\
}\
\
.ace-solarized-dark .ace_marker-layer .ace_selected_word {\
Expand Down
4 changes: 4 additions & 0 deletions plugins-client/lib.ace/www/theme/theme-solarized_light.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ exports.cssText = "\
background: #EEE8D5;\
}\
\
.ace-solarized-light .ace_gutter_active_line {\
background-color : #dcdcdc;\
}\
\
.ace-solarized-light .ace_marker-layer .ace_selected_word {\
border: 1px solid #073642;\
}\
Expand Down
4 changes: 4 additions & 0 deletions plugins-client/lib.ace/www/theme/theme-tomorrow.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ exports.cssText = "\
background: #EFEFEF;\
}\
\
.ace-tomorrow .ace_gutter_active_line {\
background-color : #dcdcdc;\
}\
\
.ace-tomorrow .ace_marker-layer .ace_selected_word {\
border: 1px solid #D6D6D6;\
}\
Expand Down
4 changes: 4 additions & 0 deletions plugins-client/lib.ace/www/theme/theme-tomorrow_night.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ exports.cssText = "\
background: #282A2E;\
}\
\
.ace-tomorrow-night .ace_gutter_active_line {\
background-color : #dcdcdc;\
}\
\
.ace-tomorrow-night .ace_marker-layer .ace_selected_word {\
border: 1px solid #373B41;\
}\
Expand Down
7 changes: 4 additions & 3 deletions plugins-client/lib.ace/www/theme/theme-tomorrow_night_blue.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,12 @@ exports.cssText = "\
border: 1px solid #404F7D;\
}\
\
.ace-tomorrow-night-blue .ace_marker-layer .ace_active_line{\
.ace-tomorrow-night-blue .ace_marker-layer .ace_active_line {\
background: #00346E;\
}\
.ace-tomorrow-night-blue .ace_gutter_active_line{\
background: #022040;\
\
.ace-tomorrow-night-blue .ace_gutter_active_line {\
background-color: #022040;\
}\
\
.ace-tomorrow-night-blue .ace_marker-layer .ace_selected_word {\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ exports.cssText = "\
background: #2A2A2A;\
}\
\
.ace-tomorrow-night-bright .ace_gutter_active_line {\
background-color : #dcdcdc;\
}\
\
.ace-tomorrow-night-bright .ace_marker-layer .ace_selected_word {\
border: 1px solid #424242;\
}\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ exports.cssText = "\
background: #393939;\
}\
\
.ace-tomorrow-night-eighties .ace_gutter_active_line {\
background-color : #dcdcdc;\
}\
\
.ace-tomorrow-night-eighties .ace_marker-layer .ace_selected_word {\
border: 1px solid #515151;\
}\
Expand Down
4 changes: 4 additions & 0 deletions plugins-client/lib.ace/www/theme/theme-twilight.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ exports.cssText = "\
background: rgba(255, 255, 255, 0.031);\
}\
\
.ace-twilight .ace_gutter_active_line {\
background-color : #dcdcdc;\
}\
\
.ace-twilight .ace_marker-layer .ace_selected_word {\
border: 1px solid rgba(221, 240, 255, 0.20);\
}\
Expand Down
4 changes: 4 additions & 0 deletions plugins-client/lib.ace/www/theme/theme-vibrant_ink.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ exports.cssText = "\
background: #333333;\
}\
\
.ace-vibrant-ink .ace_gutter_active_line {\
background-color : #dcdcdc;\
}\
\
.ace-vibrant-ink .ace_marker-layer .ace_selected_word {\
border: 1px solid #6699CC;\
}\
Expand Down
Loading

0 comments on commit 4974660

Please sign in to comment.