Skip to content

Commit 743fc94

Browse files
committed
[Feat] optimized package management and annotation
1 parent 40db024 commit 743fc94

File tree

7 files changed

+18
-26
lines changed

7 files changed

+18
-26
lines changed

src/main/kotlin/com/github/raoe/codesnapidea/actions/AsciiCodeSnapAction.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ import javax.swing.Icon
1010

1111
/**
1212
* ClassName:AsciiCodeSnapAction
13-
Package:com.github.raoe.codesnapidea.actions
14-
@DATE:10/11/2024 4:02 pm
15-
@Author:XuYuanFeng
16-
TODO: ASCII CodeSnap
13+
Package:com.github.raoe.codesnapidea.actions
14+
@DATE:10/11/2024 4:02 pm
15+
@Author:XuYuanFeng
1716
*/
1817
class AsciiCodeSnapAction: AnAction() {
1918
override fun actionPerformed(event: AnActionEvent) {

src/main/kotlin/com/github/raoe/codesnapidea/actions/DefaultCodeSnapAction.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ import javax.swing.Icon
99

1010
/**
1111
* ClassName:DefaultCodeSnapAction
12-
Package:com.github.raoe.codesnapidea.actions
13-
@DATE:10/11/2024 3:13 pm
14-
@Author:XuYuanFeng
15-
TODO:
12+
Package:com.github.raoe.codesnapidea.actions
13+
@DATE:10/11/2024 3:13 pm
14+
@Author:XuYuanFeng
1615
*/
1716
class DefaultCodeSnapAction: AnAction() {
1817
/**

src/main/kotlin/com/github/raoe/codesnapidea/actions/JpgCodeSnapAction.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ import javax.swing.Icon
1010

1111
/**
1212
* ClassName:JpgCodeSnapAction
13-
Package:com.github.raoe.codesnapidea.actions
14-
@DATE:10/11/2024 3:15 pm
15-
@Author:XuYuanFeng
16-
TODO:
13+
Package:com.github.raoe.codesnapidea.actions
14+
@DATE:10/11/2024 3:15 pm
15+
@Author:XuYuanFeng
1716
*/
1817

1918
class JpgCodeSnapAction: AnAction() {

src/main/kotlin/com/github/raoe/codesnapidea/actions/PopupDialogAction.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ import javax.swing.Icon
1111

1212
/**
1313
* ClassName:PopupDialogAction
14-
Package:com.github.raoe.codesnapidea.actions
15-
@DATE:06/11/2024 10:34 pm
16-
@Author:XuYuanFeng
17-
TODO:
14+
Package:com.github.raoe.codesnapidea.actions
15+
@DATE:06/11/2024 10:34 pm
16+
@Author:XuYuanFeng
1817
*/
1918

2019
class PopupDialogAction: AnAction {

src/main/kotlin/com/github/raoe/codesnapidea/actions/SvgCodeSnapAction.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ import javax.swing.Icon
1010

1111
/**
1212
* ClassName:SvgCodeSnapAction
13-
Package:com.github.raoe.codesnapidea.actions
14-
@DATE:10/11/2024 3:14 pm
15-
@Author:XuYuanFeng
16-
TODO:
13+
Package:com.github.raoe.codesnapidea.actions
14+
@DATE:10/11/2024 3:14 pm
15+
@Author:XuYuanFeng
1716
*/
1817

1918
class SvgCodeSnapAction: AnAction() {

src/main/kotlin/com/github/raoe/codesnapidea/ui/CodeSnapSettings.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ import com.intellij.openapi.components.Storage
66

77
/**
88
* ClassName:CodeSnapSettings
9-
Package:com.github.raoe.codesnapidea.ui
10-
@DATE:13/11/2024 10:11 pm
11-
@Author:XuYuanFeng
12-
TODO:
9+
Package:com.github.raoe.codesnapidea.ui
10+
@DATE:13/11/2024 10:11 pm
11+
@Author:XuYuanFeng
1312
*/
1413
@State(name = "CodeSnapSettings", storages = [Storage("codeSnapSettings.xml")])
1514
class CodeSnapSettings : PersistentStateComponent<CodeSnapSettings.State> {

src/main/kotlin/com/github/raoe/codesnapidea/ui/CodeSnapSettingsUI.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import com.intellij.ide.util.PropertiesComponent
22
import com.intellij.openapi.components.ServiceManager
3-
import java.awt.Dimension
43
import java.awt.FlowLayout
54
import java.io.File
65
import javax.swing.*
@@ -15,7 +14,6 @@ class CodeSnapSettingsUI {
1514
layout = BoxLayout(this, BoxLayout.Y_AXIS)
1615
border = BorderFactory.createEmptyBorder(0, 10, 0, 10)
1716
}
18-
private val basicSettingTitle: JLabel = JLabel("Project settings")
1917
private val defaultSavePathLabel: JLabel = JLabel("Default image save path:")
2018
private val mySavePathArea: JTextField = JTextField(20) // 5行40列
2119
private val mySavePathButton: JButton = JButton("Choose")

0 commit comments

Comments
 (0)