"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.stickAllActiveObjects = stickAllActiveObjects;
const Entities_1 = require("../Entities");
const UC_1 = require("../UC");
function stickAllActiveObjects(appObjects) {
    const repo = Entities_1.ChannelModelRepo.get(appObjects);
    if (!repo) {
        appObjects.submitError("stickAllActiveObjects", "Unable to find ChannelModelRepo");
        return;
    }
    if (!repo.activeModel) {
        appObjects.submitWarning("stickAllActiveObjects", "No Model is Active");
        return;
    }
    const uc = UC_1.StickAllChannelModelObjectsUC.get(repo.activeModel, appObjects);
    if (!uc) {
        appObjects.submitError("stickAllActiveObjects", "Unable to find StickAllChannelModelObjectsUC");
        return;
    }
    uc.stickAll();
}
//# sourceMappingURL=stickAllActiveObjects.js.map