| 1 | /*! |
| 2 | * VisualEditor UserInterface ToolFactory class. |
| 3 | * |
| 4 | * @copyright See AUTHORS.txt |
| 5 | */ |
| 6 | |
| 7 | /** |
| 8 | * Factory for tools. |
| 9 | * |
| 10 | * @class |
| 11 | * @extends OO.ui.ToolFactory |
| 12 | * @mixes ve.ui.ModeledFactory |
| 13 | * |
| 14 | * @constructor |
| 15 | */ |
| 16 | ve.ui.ToolFactory = function VeUiToolFactory() { |
| 17 | // Parent constructor |
| 18 | ve.ui.ToolFactory.super.call( this ); |
| 19 | |
| 20 | // Mixin constructors |
| 21 | ve.ui.ModeledFactory.call( this ); |
| 22 | }; |
| 23 | |
| 24 | /* Inheritance */ |
| 25 | |
| 26 | OO.inheritClass( ve.ui.ToolFactory, OO.ui.ToolFactory ); |
| 27 | OO.mixinClass( ve.ui.ToolFactory, ve.ui.ModeledFactory ); |
| 28 | |
| 29 | /* Initialization */ |
| 30 | |
| 31 | ve.ui.toolFactory = new ve.ui.ToolFactory(); |
| 32 | |
| 33 | ve.ui.toolGroupFactory = new OO.ui.ToolGroupFactory(); |