mediawiki-extensions-Visual.../modules/ve/ui/ve.ui.js
Trevor Parscal 6b5310c562 ve.ui.ViewRegistry annihilation
Objectives:
* Associate models with tools, rather than dialogs and inspectors
* Move tool/model association utilities to ve.ui.ToolFactory
* Obliterate the view registry

Notes:

The only special case for leaving modelClasses definitions in place is
for the linkInspector. It uses these for selection expansion.
Because tools can now override the static canEditModel method, we can
dynamically evaluate a model, rather than be restricted to only
comparing classes. This will be useful for disabling editors for models
that are for some reason incomplete or otherwise broken and cannot be
safely edited.

Change-Id: I7adf254990112d90f1f808593a9111afc7a116b5
2013-06-26 16:52:10 -07:00

22 lines
678 B
JavaScript

/*!
* VisualEditor UserInterface namespace.
*
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/**
* Namespace for all VisualEditor UserInterface classes, static methods and static properties.
*
* @class
* @singleton
*/
ve.ui = {
//'actionFactory' instantiated in ve.ui.ActionFactory.js
//'commandRegistry' instantiated in ve.ui.CommandRegistry.js
//'dialogFactory': Initialized in ve.ui.InspectorFactory.js
//'inspectorFactory': Initialized in ve.ui.InspectorFactory.js
//'toolFactory': Initialized in ve.ui.ToolFactory.js
//'triggerRegistry' instantiated in ve.ui.TriggerRegistry.js
};