All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.pocketbyte.locolaser.kotlinmpp.resource.KotlinCommonResources.kt Maven / Gradle / Ivy

The newest version!
package ru.pocketbyte.locolaser.kotlinmpp.resource

import ru.pocketbyte.locolaser.config.resources.ResourceFileProvider
import ru.pocketbyte.locolaser.config.resources.filter.ResourcesFilter
import ru.pocketbyte.locolaser.kotlinmpp.resource.file.KotlinCommonResourceFile
import ru.pocketbyte.locolaser.resource.file.ResourceFile
import ru.pocketbyte.locolaser.resource.formatting.FormattingType
import ru.pocketbyte.locolaser.resource.formatting.JavaFormattingType
import java.io.File

class KotlinCommonResources(
    dir: File,
    name: String,
    resourceFileProvider: ResourceFileProvider,
    filter: ResourcesFilter?
) : KotlinAbsResources(dir, name, resourceFileProvider, filter) {

    override val formattingType: FormattingType = JavaFormattingType

    override fun getResourceFiles(locales: Set?): Array? {
        return arrayOf(KotlinCommonResourceFile(
                directory, this.className, this.classPackage, formattingType))
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy