define(function(require, exports, module) { var oop = require("ace/lib/oop"); var BaseClass = require("ace_tree/data_provider"); var escapeHTML = require("ace/lib/lang").escapeHTML; function DataProvider(root) { BaseClass.call(this, root || {}); this.rowHeight = 19; this.rowHeightInner = 18; } oop.inherits(DataProvider, BaseClass); (function() { this.$sortNodes = false; this.getEmptyMessage = function() { return "No open files"; }; this.getRowIndent = function(node) { return node.$depth ? node.$depth - 1 : 0; }; this.getClassName = function(datarow) { return datarow.className || ""; }; this.getIconHTML = function(datarow) { var tab = datarow.tab; if (!tab) return ""; var className = tab.document.meta.saving || (tab.document.changed && "changed"); var html = " "; return html; }; this.getCaptionHTML = function(datarow) { return escapeHTML(datarow.name) + (datarow.tab ? " - " + escapeHTML(datarow.path) + "" : ""); }; this.getTooltipText = function(datarow) { return datarow.path || datarow.name; }; }).call(DataProvider.prototype); return DataProvider; });