Skip to content

Commit

Permalink
fixed: The full name of the superclass is changed to be input
Browse files Browse the repository at this point in the history
  • Loading branch information
huyaro committed Jan 29, 2024
1 parent 904f6b8 commit 3dbcf4f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
11 changes: 7 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ import kotlin.io.path.name

plugins {
id("java")
id("org.jetbrains.kotlin.jvm") version "1.9.0"
id("org.jetbrains.intellij") version "1.15.0"
id("org.jetbrains.kotlin.jvm") version "1.9.21"
id("org.jetbrains.intellij") version "1.16.1"
}

group = "dev.huyaro.gen"
version = "0.2.3"
version = "0.2.4"

repositories {
mavenCentral()
}

// Configure Gradle IntelliJ Plugin
// Read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html
Expand Down Expand Up @@ -55,7 +58,7 @@ tasks {

patchPluginXml {
sinceBuild.set("231")
untilBuild.set("233.*")
untilBuild.set("241.*")
}

signPlugin {
Expand Down
5 changes: 3 additions & 2 deletions src/main/kotlin/dev/huyaro/gen/ui/GeneratorDialog.kt
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,9 @@ class GeneratorDialog(
.bindText(options::superClass)
.align(AlignX.FILL)
.resizableColumn()
.comment("Select the superclass of entity. e.g.: com.hello.entity.BaseEntity")
superCls.component.isEditable = false
.comment("Select or enter the superclass of entity")
// 避免外部包无法选择类, 让父类输入框可手动输入父类包名
// superCls.component.isEditable = false

button("Choose...") {
val classChooserDialog = TreeJavaClassChooserDialog("Choose SuperClass...", project)
Expand Down
6 changes: 5 additions & 1 deletion src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<name>CodeGenX</name>

<!-- A displayed Vendor name or Organization ID displayed on the Plugins Page. -->
<vendor email="huyaro.dev@outlook.com" url="https://github.com/huyaro">CodeGenX</vendor>
<vendor email="huyaro.dev@outlook.com" url="https://github.com/huyaro">Huyaro</vendor>

<!-- Description of the plugin displayed on the Plugin Page and IDE Plugin Manager.
Simple HTML elements (text formatting, paragraphs, and lists) can be added inside of <![CDATA[ ]]> tag.
Expand All @@ -24,6 +24,10 @@
</ul>
]]></description>
<change-notes><![CDATA[
<h4>0.2.4</h4>
<ul>
<li>The superClass selection box allows you to manually enter the package name</li>
</ul>
<h4>0.2.3</h4>
<ul>
<li>The minimum version compatibility is changed to 2023.1.x</li>
Expand Down

0 comments on commit 3dbcf4f

Please sign in to comment.