blob: ed6278be60d0ed44e186bed7f8207ce272c749f7 [file] [log] [blame]
/**
* Copyright (c) 2020-2021 Robert Bosch GmbH.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Robert Bosch GmbH - initial API and implementation
*/
package org.eclipse.app4mc.slg.ros2.artefacts;
import java.util.Map;
import org.eclipse.app4mc.slg.commons.m2t.M2TTransformationConfig;
import org.eclipse.app4mc.transformation.ServiceConstants;
import org.eclipse.app4mc.transformation.executiontype.IModelToTextConfig;
import org.osgi.service.component.annotations.Activate;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.ConfigurationPolicy;
@Component(
configurationPid = ServiceConstants.SESSION_CONFIGURATION_PID,
configurationPolicy = ConfigurationPolicy.REQUIRE,
property = { "transformation=ROS2_SLG" },
service = IModelToTextConfig.class)
public class ROS2M2TTransformationConfig extends M2TTransformationConfig {
@Activate
void activate(Map<String, ?> properties) {
folderPath = (String) properties.get("input_models_folder");
}
}