Search in sources :

Example 11 with FeatureParameterValue

use of org.yakindu.sct.model.sgen.FeatureParameterValue in project statecharts by Yakindu.

the class DefaultFileSystemAccessFactory method initApiTargetFolder.

protected void initApiTargetFolder(ISCTFileSystemAccess access, GeneratorEntry entry) {
    FeatureParameterValue apiTargetFolderValue = helper.getApiTargetFolderValue(entry);
    if (apiTargetFolderValue != null) {
        access.setOutputPath(API_TARGET_FOLDER_OUTPUT, apiTargetFolderValue.getStringValue());
        OutputConfiguration output = access.getOutputConfigurations().get(API_TARGET_FOLDER_OUTPUT);
        output.setCreateOutputDirectory(true);
    }
}
Also used : FeatureParameterValue(org.yakindu.sct.model.sgen.FeatureParameterValue) OutputConfiguration(org.eclipse.xtext.generator.OutputConfiguration)

Example 12 with FeatureParameterValue

use of org.yakindu.sct.model.sgen.FeatureParameterValue in project statecharts by Yakindu.

the class AbstractDefaultFeatureValueProvider method createParameterValue.

protected FeatureParameterValue createParameterValue(FeatureType featureType, FeatureParameter parameter, EObject contextElement) {
    FeatureParameterValue parameterValue = factory.createFeatureParameterValue();
    parameterValue.setParameter(parameter);
    setDefaultValue(featureType, parameterValue, contextElement);
    return parameterValue;
}
Also used : FeatureParameterValue(org.yakindu.sct.model.sgen.FeatureParameterValue)

Aggregations

FeatureParameterValue (org.yakindu.sct.model.sgen.FeatureParameterValue)12 FeatureConfiguration (org.yakindu.sct.model.sgen.FeatureConfiguration)4 OutputConfiguration (org.eclipse.xtext.generator.OutputConfiguration)2 Check (org.eclipse.xtext.validation.Check)2 FeatureParameter (org.yakindu.sct.model.sgen.FeatureParameter)2 IProject (org.eclipse.core.resources.IProject)1 Path (org.eclipse.core.runtime.Path)1 URI (org.eclipse.emf.common.util.URI)1 IGenArtifactConfigurations (org.yakindu.sct.generator.c.IGenArtifactConfigurations)1 IGeneratorDescriptor (org.yakindu.sct.generator.core.extensions.IGeneratorDescriptor)1 ILibraryDescriptor (org.yakindu.sct.generator.core.extensions.ILibraryDescriptor)1 FeatureType (org.yakindu.sct.model.sgen.FeatureType)1 GeneratorEntry (org.yakindu.sct.model.sgen.GeneratorEntry)1 GeneratorModel (org.yakindu.sct.model.sgen.GeneratorModel)1