kopia lustrzana https://github.com/c9/core
49 wiersze
1.4 KiB
JavaScript
49 wiersze
1.4 KiB
JavaScript
|
define(function(require, exports, module) {
|
||
|
var oop = require("ace/lib/oop");
|
||
|
var TreeData = require("ace_tree/data_provider");
|
||
|
|
||
|
var DataProvider = function(root) {
|
||
|
TreeData.call(this, root);
|
||
|
this.rowHeight = 18;
|
||
|
};
|
||
|
oop.inherits(DataProvider, TreeData);
|
||
|
|
||
|
(function() {
|
||
|
|
||
|
this.getChildren = function(node) {
|
||
|
return node.children;
|
||
|
};
|
||
|
|
||
|
this.hasChildren = function(node) {
|
||
|
return false;
|
||
|
};
|
||
|
|
||
|
// this.getCaptionHTML = function(node) {
|
||
|
// if (node.tagName == "scope")
|
||
|
// return node.name || "Scope";
|
||
|
// return node.name + "";
|
||
|
// };
|
||
|
|
||
|
// this.updateNode = function(node) {
|
||
|
// var isOpen = node.isOpen;
|
||
|
// this.close(node, null, true);
|
||
|
// if (isOpen)
|
||
|
// this.open(node, null, true);
|
||
|
// };
|
||
|
|
||
|
// this.getIconHTML = function(node) {
|
||
|
// return node.className == "newwatch" ? "" : "<span class='dbgVarIcon'></span>";
|
||
|
// };
|
||
|
|
||
|
// this.getClassName = function(node) {
|
||
|
// return (node.className || "")
|
||
|
// + (node.status == "loading" ? " loading" : "")
|
||
|
// + (node.error ? " watcherror" : "");
|
||
|
// };
|
||
|
|
||
|
}).call(DataProvider.prototype);
|
||
|
|
||
|
return DataProvider;
|
||
|
});
|
||
|
|