+ get displayName()
+ {
+ return this._displayName;
+ },
+
+ _updateDisplayName: function()
+ {
+ this._displayName = this._titleText || "";
+ if (this._subtitleText)
+ this._displayName += " (" + this._subtitleText + ")";
+ },
+
+ _updateTitle: function()
+ {
+ this._updateDisplayName();
+
+ if (!this.titleElement)
+ return;
+
+ this._titleTextNode.textContent = this._titleText || "";
+ },
+
+ _updateSubtitle: function()
+ {
+ this._updateDisplayName();
+
+ if (!this.titleElement)
+ return;
+
+ if (this._subtitleText) {
+ if (!this._subtitleElement) {
+ this._subtitleElement = document.createElement("span");
+ this._subtitleElement.className = "base-storage-tree-element-subtitle";
+ this.titleElement.appendChild(this._subtitleElement);
+ }
+ this._subtitleElement.textContent = "(" + this._subtitleText + ")";
+ } else if (this._subtitleElement) {
+ this.titleElement.removeChild(this._subtitleElement);
+ delete this._subtitleElement;
+ }
+ },
+