mediawiki-extensions-Visual.../modules/ve-mw/ui/tools/buttons/ve.ui.MWReferenceListButtonTool.js
Ed Sanders 07821f5f55 Consistency in MW*ButtonTool comments and naming
Change-Id: Id71c7f862e43125599ecfc6eeb27719e1891489d
2013-07-26 12:04:19 +01:00

41 lines
1.2 KiB
JavaScript

/*!
* VisualEditor UserInterface MWReferenceListButtonTool class.
*
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/**
* UserInterface MediaWiki reference list button tool.
*
* @class
* @extends ve.ui.DialogButtonTool
* @constructor
* @param {ve.ui.Toolbar} toolbar
* @param {Object} [config] Config options
*/
ve.ui.MWReferenceListButtonTool = function VeUiMwReferenceListButtonTool( toolbar, config ) {
// Parent constructor
ve.ui.DialogButtonTool.call( this, toolbar, config );
};
/* Inheritance */
ve.inheritClass( ve.ui.MWReferenceListButtonTool, ve.ui.DialogButtonTool );
/* Static Properties */
ve.ui.MWReferenceListButtonTool.static.name = 'mwReferenceList';
ve.ui.MWReferenceListButtonTool.static.icon = 'references';
ve.ui.MWReferenceListButtonTool.static.titleMessage = 'visualeditor-dialogbutton-referencelist-tooltip';
ve.ui.MWReferenceListButtonTool.static.dialog = 'mwReferenceList';
ve.ui.MWReferenceListButtonTool.static.modelClasses = [ ve.dm.MWReferenceListNode ];
/* Registration */
ve.ui.toolFactory.register( 'mwReferenceList', ve.ui.MWReferenceListButtonTool );