mirror of
https://github.com/nasa/openmct.git
synced 2024-12-18 20:57:53 +00:00
[Selection] Inject actionRegistry
This commit is contained in:
parent
8b44b44e38
commit
407550e6f4
@ -22,6 +22,7 @@
|
||||
|
||||
define([
|
||||
'EventEmitter',
|
||||
'./Registry',
|
||||
'./selection/Selection',
|
||||
'./selection/ContextManager',
|
||||
'./selection/SelectGesture',
|
||||
@ -29,6 +30,7 @@ define([
|
||||
'./ui/ViewRegistry'
|
||||
], function (
|
||||
EventEmitter,
|
||||
Registry,
|
||||
Selection,
|
||||
ContextManager,
|
||||
SelectGesture,
|
||||
@ -36,15 +38,20 @@ define([
|
||||
ViewRegistry
|
||||
) {
|
||||
var openmct = Object.create(EventEmitter.prototype);
|
||||
var actionRegistry = new Registry();
|
||||
var selection = new Selection();
|
||||
var manager = new ContextManager();
|
||||
var select = new SelectGesture(manager, selection);
|
||||
var contextMenu = new ContextMenuGesture(selection, {}, {}, manager);
|
||||
var contextMenu = new ContextMenuGesture(
|
||||
selection,
|
||||
{},
|
||||
actionRegistry,
|
||||
manager
|
||||
);
|
||||
|
||||
EventEmitter.call(openmct);
|
||||
|
||||
openmct.selection = selection;
|
||||
|
||||
openmct.inspectors = new ViewRegistry();
|
||||
|
||||
openmct.gestures = {
|
||||
|
Loading…
Reference in New Issue
Block a user