2 * VisualEditor UserInterface MWSyntaxHighlightInspectorTool class.
4 * @copyright 2011-2015 VisualEditor Team and others; see AUTHORS.txt
5 * @license The MIT License (MIT); see LICENSE.txt
9 * MediaWiki UserInterface syntax highlight tool.
12 * @extends ve.ui.FragmentInspectorTool
14 * @param {OO.ui.ToolGroup} toolGroup
15 * @param {Object} [config] Configuration options
17 ve.ui.MWSyntaxHighlightInspectorTool = function VeUiMWSyntaxHighlightInspectorTool() {
18 ve.ui.MWSyntaxHighlightInspectorTool.super.apply( this, arguments );
20 OO.inheritClass( ve.ui.MWSyntaxHighlightInspectorTool, ve.ui.FragmentInspectorTool );
21 ve.ui.MWSyntaxHighlightInspectorTool.static.name = 'syntaxhighlightInspector';
22 ve.ui.MWSyntaxHighlightInspectorTool.static.group = 'object';
23 ve.ui.MWSyntaxHighlightInspectorTool.static.icon = 'alienextension';
24 ve.ui.MWSyntaxHighlightInspectorTool.static.title = OO.ui.deferMsg(
25 'syntaxhighlight-visualeditor-mwsyntaxhighlightinspector-title' );
26 ve.ui.MWSyntaxHighlightInspectorTool.static.modelClasses = [ ve.dm.MWInlineSyntaxHighlightNode ];
27 ve.ui.MWSyntaxHighlightInspectorTool.static.commandName = 'syntaxhighlightInspector';
28 ve.ui.MWSyntaxHighlightInspectorTool.static.autoAddToCatchall = false;
29 ve.ui.toolFactory.register( ve.ui.MWSyntaxHighlightInspectorTool );
31 ve.ui.commandRegistry.register(
33 'syntaxhighlightInspector', 'window', 'open',
34 { args: [ 'syntaxhighlightInspector' ], supportedSelections: [ 'linear' ] }