import { ActionStore, EntityAction, ioc } from '@journeyapps-labs/reactor-mod';
import { MonacoThemeStore } from '../stores/MonacoThemeStore';
import { EditorEntities } from '../entities/EditorEntities';
export class ChangeEditorThemeAction extends EntityAction {
    constructor() {
        super({
            name: ChangeEditorThemeAction.NAME,
            icon: 'paint-brush',
            id: ChangeEditorThemeAction.ID,
            target: EditorEntities.THEME
        });
    }
    async fireEvent(event) {
        ioc.get(MonacoThemeStore).selectedTheme.setItem(event.targetEntity);
    }
    static get() {
        return ioc.get(ActionStore).getAction(ChangeEditorThemeAction.NAME);
    }
}
ChangeEditorThemeAction.ID = 'CHANGE_EDITOR_THEME';
ChangeEditorThemeAction.NAME = 'Change code theme';
//# sourceMappingURL=ChangeEditorThemeAction.js.map