/** * Creates an es.Tool object. * * @class * @constructor * @param {es.ToolbarView} toolbar * @param {String} name */ es.Tool = function( toolbar, name, title ) { this.toolbar = toolbar; this.name = name; this.title = title; this.$ = $( '
' ).attr( 'title', this.title ); }; /* Static Members */ es.Tool.tools = {}; /* Methods */ es.Tool.prototype.updateState = function() { throw 'Tool.updateState not implemented in this subclass:' + this.constructor; };