mediawiki-extensions-Visual.../modules/ve-mw/ui/tools/buttons/ve.ui.MWAlienExtensionButtonTool.js

41 lines
1.2 KiB
JavaScript
Raw Normal View History

/*!
* 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 );