-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocs.js
46 lines (37 loc) · 1.03 KB
/
docs.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/**
* Documentation for the Cloud9 IDE
*
* @copyright 2010, Ajax.org B.V.
* @license GPLv3 <http://www.gnu.org/licenses/gpl.txt>
*/
define(function(require, exports, module) {
var ide = require("core/ide");
var ext = require("core/ext");
var panels = require("ext/panels/panels")
var markup = require("text!ext/docs/docs.xml");
module.exports = ext.register("ext/docs/docs", {
name : "Documentation",
dev : "Ajax.org",
type : ext.GENERAL,
alone : true,
markup : markup,
hook : function(){
panels.register(this);
},
init : function(amlNode){
//Append the docs window at the right of the editor
ide.vbMain.selectSingleNode("a:hbox/a:vbox[3]").appendChild(winDocViewer);
this.panel = winDocViewer;
},
enable : function(){
winDocViewer.show();
},
disable : function(fromParent){
winDocViewer.hide();
},
destroy : function(){
winDocViewer.destroy(true, true);
panels.unregister(this);
}
});
});