UNPKG

@eclipse-emfcloud/model-service

Version:
35 lines 1.4 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HubAwareProvider = void 0; // ***************************************************************************** // Copyright (C) 2023-2024 STMicroelectronics. // // This program and the accompanying materials are made available under the // terms of the Eclipse Public License v. 2.0 which is available at // http://www.eclipse.org/legal/epl-2.0. // // This Source Code may also be made available under the following Secondary // Licenses when the conditions for such availability set forth in the Eclipse // Public License v. 2.0 are satisfied: MIT License which is // available at https://opensource.org/licenses/MIT. // // SPDX-License-Identifier: EPL-2.0 OR MIT // ***************************************************************************** const model_accessor_bus_1 = require("@eclipse-emfcloud/model-accessor-bus"); /** * Extends the model accessor bus DefaultProvider with access to the model hub. * * @extends DefaultProvider */ class HubAwareProvider extends model_accessor_bus_1.DefaultProvider { /** * Sets the model hub for this provider. * * @param {ModelHub} hub the ModelHub instance to be set */ setModelHub(modelHub) { this.modelHub = modelHub; } } exports.HubAwareProvider = HubAwareProvider; //# sourceMappingURL=hub-aware-accessor-provider.js.map