All files / src/ui/tools ve.ui.CommentAnnotationInspectorTool.js

90.9% Statements 10/11
100% Branches 0/0
0% Functions 0/1
90.9% Lines 10/11

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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