-
Notifications
You must be signed in to change notification settings - Fork 1
/
di.config.ts
22 lines (21 loc) · 988 Bytes
/
di.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import {
FeatureModule,
SetModelAction,
UpdateModelAction,
configureActionHandler,
configureCommand,
configureModelElement
} from '@eclipse-glsp/client';
import { MiningCommand } from './mining-action';
import { SetMiningActionHandler } from './action';
import { DiagramCaption } from './DiagramCaption';
import { DiagramCaptionView } from './DiagramCaptionView';
import { MiningLabelView } from './MiningLabelView';
import { MiningLabel } from './MiningLabel';
export const ivyMiningModule = new FeatureModule((bind, _unbind, isBound) => {
configureActionHandler({ bind, isBound }, UpdateModelAction.KIND, SetMiningActionHandler);
configureActionHandler({ bind, isBound }, SetModelAction.KIND, SetMiningActionHandler);
configureCommand({ bind, isBound }, MiningCommand);
configureModelElement({ bind, isBound }, MiningLabel.TYPE, MiningLabel, MiningLabelView);
configureModelElement({ bind, isBound }, DiagramCaption.TYPE, DiagramCaption, DiagramCaptionView);
});