Debian Codegraph @

extensions/VisualEditor/lib/ve/src/ui/tools/ve.ui.CommentAnnotationInspectorTool.js

raw symbols SCIP
1 /*!
2 * VisualEditor UserInterface CommentAnnotation tool class.
3 *
4 * @copyright See AUTHORS.txt
5 */
6
7 /**
8 * UserInterface CommentAnnotation tool.
9 *
10 * @class
11 * @extends ve.ui.FragmentInspectorTool
12 * @constructor
13 * @param {OO.ui.ToolGroup} toolGroup
14 * @param {Object} [config] Configuration options
15 */
16 ve.ui.CommentAnnotationInspectorTool = function VeUiCommentAnnotationInspectorTool() {
17 ve.ui.CommentAnnotationInspectorTool.super.apply( this, arguments );
18 };
19 OO.inheritClass( ve.ui.CommentAnnotationInspectorTool, ve.ui.FragmentInspectorTool );
20 ve.ui.CommentAnnotationInspectorTool.static.name = 'commentAnnotation';
21 ve.ui.CommentAnnotationInspectorTool.static.group = 'meta';
22 ve.ui.CommentAnnotationInspectorTool.static.icon = 'speechBubble';
23 ve.ui.CommentAnnotationInspectorTool.static.title =
24 OO.ui.deferMsg( 'visualeditor-commentinspector-tooltip' );
25 ve.ui.CommentAnnotationInspectorTool.static.modelClasses = [ ve.dm.CommentAnnotation ];
26 ve.ui.CommentAnnotationInspectorTool.static.commandName = 'commentAnnotation';
27 ve.ui.toolFactory.register( ve.ui.CommentAnnotationInspectorTool );
28
29 ve.ui.commandRegistry.register(
30 new ve.ui.Command(
31 'commentAnnotation', 'window', 'open',
32 { args: [ 'commentAnnotation' ], supportedSelections: [ 'linear' ] }
33 )
34 );