From d643dff83ed1917b508f8a03429598652e7ffcad Mon Sep 17 00:00:00 2001 From: zt515 Date: Sun, 10 Dec 2017 23:37:52 +0800 Subject: [PATCH] Codegen: start ProfileGenerator --- .../impl}/NeoColorGenerator.kt | 2 +- .../codegen/impl/NeoProfileGenerator.kt | 18 ++++++++++++++++++ .../neoterm/component/color/NeoColorScheme.kt | 2 +- 3 files changed, 20 insertions(+), 2 deletions(-) rename app/src/main/java/io/neoterm/component/{color/codegen => codegen/impl}/NeoColorGenerator.kt (98%) create mode 100644 app/src/main/java/io/neoterm/component/codegen/impl/NeoProfileGenerator.kt diff --git a/app/src/main/java/io/neoterm/component/color/codegen/NeoColorGenerator.kt b/app/src/main/java/io/neoterm/component/codegen/impl/NeoColorGenerator.kt similarity index 98% rename from app/src/main/java/io/neoterm/component/color/codegen/NeoColorGenerator.kt rename to app/src/main/java/io/neoterm/component/codegen/impl/NeoColorGenerator.kt index daef0f9..9bd97c4 100644 --- a/app/src/main/java/io/neoterm/component/color/codegen/NeoColorGenerator.kt +++ b/app/src/main/java/io/neoterm/component/codegen/impl/NeoColorGenerator.kt @@ -1,4 +1,4 @@ -package io.neoterm.component.color.codegen +package io.neoterm.component.codegen.impl import io.neoterm.component.codegen.CodeGenParameter import io.neoterm.component.codegen.generator.ICodeGenerator diff --git a/app/src/main/java/io/neoterm/component/codegen/impl/NeoProfileGenerator.kt b/app/src/main/java/io/neoterm/component/codegen/impl/NeoProfileGenerator.kt new file mode 100644 index 0000000..a5edd61 --- /dev/null +++ b/app/src/main/java/io/neoterm/component/codegen/impl/NeoProfileGenerator.kt @@ -0,0 +1,18 @@ +package io.neoterm.component.codegen.impl + +import io.neoterm.component.codegen.CodeGenParameter +import io.neoterm.component.codegen.generator.ICodeGenerator +import io.neoterm.component.codegen.model.CodeGenObject + +/** + * @author kiva + */ +class NeoProfileGenerator(parameter: CodeGenParameter) : ICodeGenerator(parameter) { + override fun getGeneratorName(): String { + return "NeoProfile-Generator" + } + + override fun generateCode(codeGenObject: CodeGenObject): String { + return "" + } +} \ No newline at end of file diff --git a/app/src/main/java/io/neoterm/component/color/NeoColorScheme.kt b/app/src/main/java/io/neoterm/component/color/NeoColorScheme.kt index f6a1b3e..fd93c4d 100644 --- a/app/src/main/java/io/neoterm/component/color/NeoColorScheme.kt +++ b/app/src/main/java/io/neoterm/component/color/NeoColorScheme.kt @@ -6,7 +6,7 @@ import io.neoterm.backend.TerminalColors import io.neoterm.component.codegen.CodeGenParameter import io.neoterm.component.codegen.generator.ICodeGenerator import io.neoterm.component.codegen.model.CodeGenObject -import io.neoterm.component.color.codegen.NeoColorGenerator +import io.neoterm.component.codegen.impl.NeoColorGenerator import io.neoterm.component.config.ConfigureComponent import io.neoterm.frontend.component.ComponentManager import io.neoterm.frontend.config.NeoConfigureFile