all files / src/ui/contextitems/ ve.ui.AlienContextItem.js

77.78% Statements 7/9
100% Branches 0/0
0% Functions 0/1
77.78% Lines 7/9
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 36 37 38 39 40 41 42                                                                     
/*!
 * VisualEditor AlienContextItem class.
 *
 * @copyright 2011-2019 VisualEditor Team and others; see http://ve.mit-license.org
 */
 
/**
 * Context item for a Alien.
 *
 * @class
 * @extends ve.ui.LinearContextItem
 *
 * @param {ve.ui.Context} context Context item is in
 * @param {ve.dm.Model} model Model item is related to
 * @param {Object} config Configuration options
 */
ve.ui.AlienContextItem = function VeUiAlienContextItem( context, model, config ) {
	// Parent constructor
	ve.ui.AlienContextItem.super.call( this, context, model, config );
 
	// Initialization
	this.$element.addClass( 've-ui-alienContextItem' );
};
 
/* Inheritance */
 
OO.inheritClass( ve.ui.AlienContextItem, ve.ui.LinearContextItem );
 
/* Static Properties */
 
ve.ui.AlienContextItem.static.name = 'alien';
 
ve.ui.AlienContextItem.static.icon = 'puzzle';
 
ve.ui.AlienContextItem.static.label = OO.ui.deferMsg( 'visualeditor-aliencontextitem-title' );
 
ve.ui.AlienContextItem.static.editable = false;
 
/* Registration */
 
ve.ui.contextItemFactory.register( ve.ui.AlienContextItem );