// Generated by CoffeeScript 1.12.7
var BaseMigrationNode,
  extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
  hasProp = {}.hasOwnProperty;

BaseMigrationNode = (function(superClass) {
  extend(BaseMigrationNode, superClass);

  function BaseMigrationNode() {
    return BaseMigrationNode.__super__.constructor.apply(this, arguments);
  }

  BaseMigrationNode.prototype.initOpts = function() {
    BaseMigrationNode.__super__.initOpts.call(this);
    return this.addOpts({
      migration: {
        mandatory: true,
        check: BaseMigration
      }
    });
  };

  BaseMigrationNode.prototype.getActionPane = function() {
    return new CUI.EmptyLabel({
      centered: true,
      multiline: true,
      text: $$("base.migration.action_pane." + CUI.util.getObjectClass(this))
    });
  };

  BaseMigrationNode.prototype.getDisplayText = function() {
    return "<data-node>";
  };

  BaseMigrationNode.prototype.log = function() {
    return this._migration.log.apply(this._migration, arguments);
  };

  BaseMigrationNode.prototype.getMigration = function() {
    return this._migration;
  };

  return BaseMigrationNode;

})(CUI.ListViewTreeNode);
