import { ChannelModelRepo } from "../Entities";
import { StickAllChannelModelObjectsUC } from "../UC";
export function stickAllActiveObjects(appObjects) {
    const repo = 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 = StickAllChannelModelObjectsUC.get(repo.activeModel, appObjects);
    if (!uc) {
        appObjects.submitError("stickAllActiveObjects", "Unable to find StickAllChannelModelObjectsUC");
        return;
    }
    uc.stickAll();
}
//# sourceMappingURL=stickAllActiveObjects.js.map