mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-05 22:22:54 +00:00
41 lines
1.2 KiB
JavaScript
41 lines
1.2 KiB
JavaScript
|
/*!
|
||
|
* VisualEditor UserInterface MWAlienExtensionButtonTool class.
|
||
|
*
|
||
|
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
|
||
|
* @license The MIT License (MIT); see LICENSE.txt
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* UserInterface MediaWiki alien extension button tool.
|
||
|
*
|
||
|
* @class
|
||
|
* @extends ve.ui.InspectorButtonTool
|
||
|
* @constructor
|
||
|
* @param {ve.ui.Toolbar} toolbar
|
||
|
* @param {Object} [config] Config options
|
||
|
*/
|
||
|
ve.ui.MWAlienExtensionButtonTool = function VeUiMWAlienExtensionButtonTool( toolbar, config ) {
|
||
|
// Parent constructor
|
||
|
ve.ui.InspectorButtonTool.call( this, toolbar, config );
|
||
|
};
|
||
|
|
||
|
/* Inheritance */
|
||
|
|
||
|
ve.inheritClass( ve.ui.MWAlienExtensionButtonTool, ve.ui.InspectorButtonTool );
|
||
|
|
||
|
/* Static Properties */
|
||
|
|
||
|
ve.ui.MWAlienExtensionButtonTool.static.name = 'mwAlienExtension';
|
||
|
|
||
|
ve.ui.MWAlienExtensionButtonTool.static.icon = 'alienextension';
|
||
|
|
||
|
ve.ui.MWAlienExtensionButtonTool.static.titleMessage = 'visualeditor-mwalienextensioninspector-title';
|
||
|
|
||
|
ve.ui.MWAlienExtensionButtonTool.static.inspector = 'mwAlienExtensionInspector';
|
||
|
|
||
|
ve.ui.MWAlienExtensionButtonTool.static.modelClasses = [ ve.dm.MWAlienExtensionNode ];
|
||
|
|
||
|
/* Registration */
|
||
|
|
||
|
ve.ui.toolFactory.register( 'mwAlienExtension', ve.ui.MWAlienExtensionButtonTool );
|