Search in sources :

Example 1 with JpsModuleSourceRootDummyPropertiesSerializer

use of org.jetbrains.jps.model.serialization.module.JpsModuleSourceRootDummyPropertiesSerializer in project Perl5-IDEA by Camelcade.

the class PerlSourceTypesSerializationExtension method getModuleSourceRootPropertiesSerializers.

@NotNull
@Override
public List<? extends JpsModuleSourceRootPropertiesSerializer<?>> getModuleSourceRootPropertiesSerializers() {
    List<JpsModuleSourceRootDummyPropertiesSerializer> result = ContainerUtil.newArrayList();
    Perl5SettingsConfigurableExtension.forEach(extension -> extension.getSourceRootTypes().forEach(type -> result.add(new JpsModuleSourceRootDummyPropertiesSerializer(type, type.getSerializationKey()))));
    return result;
}
Also used : JpsModelSerializerExtension(org.jetbrains.jps.model.serialization.JpsModelSerializerExtension) List(java.util.List) JpsModuleSourceRootDummyPropertiesSerializer(org.jetbrains.jps.model.serialization.module.JpsModuleSourceRootDummyPropertiesSerializer) ContainerUtil(com.intellij.util.containers.ContainerUtil) NotNull(org.jetbrains.annotations.NotNull) Perl5SettingsConfigurableExtension(com.perl5.lang.perl.idea.configuration.settings.sdk.Perl5SettingsConfigurableExtension) JpsModuleSourceRootPropertiesSerializer(org.jetbrains.jps.model.serialization.module.JpsModuleSourceRootPropertiesSerializer) JpsModuleSourceRootDummyPropertiesSerializer(org.jetbrains.jps.model.serialization.module.JpsModuleSourceRootDummyPropertiesSerializer) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

ContainerUtil (com.intellij.util.containers.ContainerUtil)1 Perl5SettingsConfigurableExtension (com.perl5.lang.perl.idea.configuration.settings.sdk.Perl5SettingsConfigurableExtension)1 List (java.util.List)1 NotNull (org.jetbrains.annotations.NotNull)1 JpsModelSerializerExtension (org.jetbrains.jps.model.serialization.JpsModelSerializerExtension)1 JpsModuleSourceRootDummyPropertiesSerializer (org.jetbrains.jps.model.serialization.module.JpsModuleSourceRootDummyPropertiesSerializer)1 JpsModuleSourceRootPropertiesSerializer (org.jetbrains.jps.model.serialization.module.JpsModuleSourceRootPropertiesSerializer)1