Skip to content

Commit 55f56d2

Browse files
committed
自定义的设置构建完成
1 parent b94966f commit 55f56d2

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
# intellij-format-methods-plugin Changelog
44

5+
## [1.0.6] (2023/09/28)
6+
- Add plugin settings, now you can customize the sort by
7+
- 新增插件设置,你可以自定义排序依据了
8+
59
## [1.0.5] (2023/06/25)
610
- Clean up some excess code
711
- Resolve the `com.intellij.serviceContainer.AlreadyDisposedException` caused

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pluginGroup = com.github.dcsmf.intellijformatmethodsplugin
44
pluginName = FormatMethodPyramid
55
pluginRepositoryUrl = https://github.com/dcsmf/intellij-format-methods-plugin
66
# SemVer format -> https://semver.org
7-
pluginVersion = 1.0.5
7+
pluginVersion = 1.0.6
88

99
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
1010
pluginSinceBuild = 201

src/main/kotlin/com/github/dcsmf/plugin/formatmethods/settings/AppSettingsConfigurable.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ class AppSettingsConfigurable(project: Project) : BoundConfigurable(message("set
1414

1515
override fun createPanel(): DialogPanel {
1616
return panel {
17+
row{
18+
label(message("note"))
19+
}
1720
titledRow(message("group1")) {
1821
row {
1922
label(message("methodExample"))
@@ -48,6 +51,7 @@ class AppSettingsConfigurable(project: Project) : BoundConfigurable(message("set
4851
row {
4952
checkBox(
5053
message("methodName"),
54+
comment = message("methodNameLabel")
5155
).withSelectedBinding(
5256
PropertyBinding({ appSettingsState.methodName },
5357
{ value -> appSettingsState.methodName = value })

src/main/resources/messages/SettingsTextBundle.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@ returnTypeLabel=like "void"
1111
settingName=FormatMethods Settings
1212
throws=throws
1313
throwsLabel=like "throws Exception"
14-
methodExample=example: public <T> void myMethod(int a, int b) throws Exception
14+
methodExample=Method style reference: public <T> void myMethod(int a, int b) throws Exception
15+
note=<html><b>Note:</b> If all are unchecked, the <b>method name</b> sorting is used by default</html>
16+
methodNameLabel=like "myMethod"
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
genericTypeParameter=\u6CDB\u578B\u7C7B\u578B\u53C2\u6570
22
genericTypeParameterLabel=\u5982\u5728\u6807\u8BC6\u7B26\u540E\u7684 "T"
33
group1=\u6839\u636E...\u6392\u5E8F
4-
methodName=\u51FD\u6570\u540D
4+
methodName=\u65B9\u6CD5\u540D
55
modifier=\u6807\u8BC6\u7B26
66
modifierLabel=\u5982 "public"
77
parameters=\u53C2\u6570\u5217\u8868
@@ -11,4 +11,6 @@ returnTypeLabel=\u5982 "void"
1111
settingName=\u91D1\u5B57\u5854\u683C\u5F0F\u5316\u65B9\u6CD5\u8BBE\u7F6E
1212
throws=\u5F02\u5E38\u629B\u51FA
1313
throwsLabel=\u5982 "throws Exception"
14-
methodExample=\u4F8B\u5B50\uFF1Apublic <T> void myMethod(int a, int b) throws Exception
14+
methodExample=\u65B9\u6CD5\u6837\u5F0F\u53C2\u8003\uFF1Apublic <T> void myMethod(int a, int b) throws Exception
15+
note=<html><b>\u63D0\u793A\uFF1A</b>\u5168\u90E8\u53D6\u6D88\u52FE\u9009\uFF0C\u5219\u9ED8\u8BA4\u4F7F\u7528 <b>\u65B9\u6CD5\u540D</b> \u8FDB\u884C\u6392\u5E8F</html>
16+
methodNameLabel=\u5982 "myMethod"

0 commit comments

Comments
 (0)