From 0cbbc101b1574f71c09fa5cf59ea032ee7b8273e Mon Sep 17 00:00:00 2001 From: Cooppor Date: Thu, 30 May 2019 12:21:54 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=B7=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/sjhy/plugin/ui/MainSetting.form | 32 ++++++++++++++----- .../java/com/sjhy/plugin/ui/MainSetting.java | 5 +++ src/main/resources/string.properties | 1 + 3 files changed, 30 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/sjhy/plugin/ui/MainSetting.form b/src/main/java/com/sjhy/plugin/ui/MainSetting.form index 9aadd3c..b37c5cf 100644 --- a/src/main/java/com/sjhy/plugin/ui/MainSetting.form +++ b/src/main/java/com/sjhy/plugin/ui/MainSetting.form @@ -1,6 +1,6 @@
- + @@ -10,7 +10,7 @@ - + @@ -19,7 +19,7 @@ - + @@ -28,7 +28,7 @@ - + @@ -44,7 +44,7 @@ - + @@ -54,7 +54,7 @@ - + @@ -62,13 +62,13 @@ - + - + @@ -101,6 +101,22 @@ + + + + + + + + + + + + + + + +
diff --git a/src/main/java/com/sjhy/plugin/ui/MainSetting.java b/src/main/java/com/sjhy/plugin/ui/MainSetting.java index b99576e..1ac1568 100644 --- a/src/main/java/com/sjhy/plugin/ui/MainSetting.java +++ b/src/main/java/com/sjhy/plugin/ui/MainSetting.java @@ -62,6 +62,10 @@ public class MainSetting implements Configurable, Configurable.Composite { * 模板导出按钮 */ private JButton exportBtn; + /** + * 当前版本号 + */ + private JLabel versionLabel; /** * 重置列表 @@ -294,6 +298,7 @@ public class MainSetting implements Configurable, Configurable.Composite { */ private void init() { //初始化数据 + versionLabel.setText(settings.getVersion()); authorTextField.setText(settings.getAuthor()); encodeComboBox.setSelectedItem(settings.getEncode()); } diff --git a/src/main/resources/string.properties b/src/main/resources/string.properties index 4646362..4a06432 100644 --- a/src/main/resources/string.properties +++ b/src/main/resources/string.properties @@ -1,6 +1,7 @@ button.reset=\u91CD\u7F6E\u9ED8\u8BA4\u8BBE\u7F6E button.type.mapper.copy.group=Copy Group label.all=&All +label.version=&\u5f53\u524d\u7248\u672c\uFF1A label.author.name=&\u4F5C\u8005\u540D\u79F0\uFF1A label.cancel=&Cancel label.choose=&Choose From f61079fc0140935f38bd8f122287d326e93f0194 Mon Sep 17 00:00:00 2001 From: Cooppor Date: Thu, 30 May 2019 12:35:26 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E7=B4=A0=E9=A1=BA=E5=BA=8F=E4=B8=8A=E4=B8=8B=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sjhy/plugin/ui/TemplateSettingPanel.java | 2 +- .../plugin/ui/base/BaseItemSelectPanel.java | 77 ++++++++++++++++++- src/main/resources/META-INF/plugin.xml | 2 +- 3 files changed, 78 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/sjhy/plugin/ui/TemplateSettingPanel.java b/src/main/java/com/sjhy/plugin/ui/TemplateSettingPanel.java index 2b76752..a834bd4 100644 --- a/src/main/java/com/sjhy/plugin/ui/TemplateSettingPanel.java +++ b/src/main/java/com/sjhy/plugin/ui/TemplateSettingPanel.java @@ -200,7 +200,7 @@ public class TemplateSettingPanel implements Configurable { }; // 创建元素选择面板 - this.baseItemSelectPanel = new BaseItemSelectPanel