mediawiki-extensions-Visual.../modules/ve-mw/ui/inspectors/ve.ui.MWAlienExtensionInspector.js
Roan Kattouw 75270e24d5 Fixes for Trevor's crazy half-baked commit
Fix things that 4aa86d0f8 broke:
* Update surface parameter to windowSet in all ve.ui.SurfaceDialog subclasses
* Do the same for ve.ui.SurfaceInspector subclasses
* Fix @extends documentation for SurfaceDialog
* Fix documentation for ve.ui.SurfaceInspector, copypasta from SurfaceDialog

Bonus:
* Add .getMetaList() getter to dm.Surface

Change-Id: I843e99e45e9b013cb9cb559f050384d39bbbddf2
2013-10-09 22:08:13 +02:00

54 lines
1.5 KiB
JavaScript

/*!
* VisualEditor UserInterface MWAlienExtensionInspector class.
*
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/**
* MediaWiki alien extension inspector.
*
* @class
* @extends ve.ui.MWExtensionInspector
*
* @constructor
* @param {ve.ui.SurfaceWindowSet} windowSet Window set this inspector is part of
* @param {Object} [config] Configuration options
*/
ve.ui.MWAlienExtensionInspector = function VeUiMWAlienExtensionInspector( windowSet, config ) {
// Parent constructor
ve.ui.MWExtensionInspector.call( this, windowSet, config );
};
/* Inheritance */
ve.inheritClass( ve.ui.MWAlienExtensionInspector, ve.ui.MWExtensionInspector );
/* Static properties */
ve.ui.MWAlienExtensionInspector.static.name = 'alienExtension';
ve.ui.MWAlienExtensionInspector.static.icon = 'alienextension';
ve.ui.MWAlienExtensionInspector.static.nodeView = ve.ce.MWAlienExtensionNode;
ve.ui.MWAlienExtensionInspector.static.nodeModel = ve.dm.MWAlienExtensionNode;
/* Methods */
/** */
ve.ui.MWAlienExtensionInspector.prototype.initialize = function () {
// Parent method
ve.ui.MWExtensionInspector.prototype.initialize.call( this );
this.input.$.addClass( 've-ui-mwAlienExtensionInspector-input' );
};
ve.ui.MWAlienExtensionInspector.prototype.getTitle = function () {
return this.surface.getView().getFocusedNode().getModel().getExtensionName();
};
/* Registration */
ve.ui.inspectorFactory.register( ve.ui.MWAlienExtensionInspector );