Component: Rename classes
This commit is contained in:
parent
b6639cab44
commit
83699de49f
@ -5,7 +5,7 @@ import io.neoterm.App
|
||||
import io.neoterm.R
|
||||
import io.neoterm.component.codegen.CodeGenComponent
|
||||
import io.neoterm.frontend.component.ComponentManager
|
||||
import io.neoterm.frontend.component.helper.FileBasedComponent
|
||||
import io.neoterm.frontend.component.helper.ConfigFileBasedComponent
|
||||
import io.neoterm.frontend.config.NeoPreference
|
||||
import io.neoterm.frontend.config.NeoTermPath
|
||||
import io.neoterm.frontend.logging.NLog
|
||||
@ -18,7 +18,7 @@ import java.io.File
|
||||
/**
|
||||
* @author kiva
|
||||
*/
|
||||
class ColorSchemeComponent : FileBasedComponent<NeoColorScheme>() {
|
||||
class ColorSchemeComponent : ConfigFileBasedComponent<NeoColorScheme>() {
|
||||
companion object {
|
||||
fun colorFile(colorName: String): File {
|
||||
return File("${NeoTermPath.COLORS_PATH}/$colorName.nl")
|
||||
|
@ -9,7 +9,7 @@ import io.neoterm.component.codegen.model.CodeGenObject
|
||||
import io.neoterm.component.codegen.impl.NeoColorGenerator
|
||||
import io.neoterm.component.config.ConfigureComponent
|
||||
import io.neoterm.frontend.component.ComponentManager
|
||||
import io.neoterm.frontend.component.helper.FileBasedComponentObject
|
||||
import io.neoterm.frontend.component.helper.ConfigFileBasedObject
|
||||
import io.neoterm.frontend.config.NeoConfigureFile
|
||||
import io.neoterm.frontend.logging.NLog
|
||||
import io.neoterm.frontend.terminal.TerminalView
|
||||
@ -20,7 +20,7 @@ import java.io.File
|
||||
/**
|
||||
* @author kiva
|
||||
*/
|
||||
open class NeoColorScheme : CodeGenObject, FileBasedComponentObject {
|
||||
open class NeoColorScheme : CodeGenObject, ConfigFileBasedObject {
|
||||
companion object {
|
||||
const val COLOR_PREFIX = "color"
|
||||
const val CONTEXT_COLOR_NAME = "colors"
|
||||
|
@ -9,9 +9,9 @@ import java.io.File
|
||||
/**
|
||||
* @author kiva
|
||||
*/
|
||||
abstract class FileBasedComponent<out T : FileBasedComponentObject> : NeoComponent {
|
||||
abstract class ConfigFileBasedComponent<out T : ConfigFileBasedObject> : NeoComponent {
|
||||
companion object {
|
||||
private val TAG = FileBasedComponent::class.java.simpleName
|
||||
private val TAG = ConfigFileBasedComponent::class.java.simpleName
|
||||
}
|
||||
|
||||
open val checkComponentFileWhenObtained = false
|
@ -5,7 +5,7 @@ import io.neolang.visitor.ConfigVisitor
|
||||
/**
|
||||
* @author kiva
|
||||
*/
|
||||
interface FileBasedComponentObject {
|
||||
interface ConfigFileBasedObject {
|
||||
@Throws(RuntimeException::class)
|
||||
fun onConfigLoaded(configVisitor: ConfigVisitor)
|
||||
}
|
Loading…
Reference in New Issue
Block a user