Skip to content

Commit 85ee616

Browse files
committed
Refactor file imports to standardize package structure and improve code organization
1 parent 495e1c2 commit 85ee616

18 files changed

Lines changed: 28 additions & 28 deletions

src/main/kotlin/com/github/cnrture/quickprojectwizard/common/Extensions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package com.github.cnrture.quickprojectwizard.common
33
import com.intellij.openapi.project.Project
44
import com.intellij.openapi.vfs.VfsUtil
55
import java.io.File
6-
import com.github.cnrture.quickprojectwizard.toolwindow.file.File as ProjectFile
6+
import com.github.cnrture.quickprojectwizard.common.file.File as ProjectFile
77

88
fun Project.getCurrentlySelectedFile(selectedSrc: String): File {
99
return File(rootDirectoryStringDropLast() + File.separator + selectedSrc)

src/main/kotlin/com/github/cnrture/quickprojectwizard/common/Utils.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package com.github.cnrture.quickprojectwizard.common
22

33
import com.github.cnrture.quickprojectwizard.dialog.MessageDialogWrapper
4-
import com.github.cnrture.quickprojectwizard.toolwindow.file.FileWriter
5-
import com.github.cnrture.quickprojectwizard.toolwindow.file.ImportAnalyzer
6-
import com.github.cnrture.quickprojectwizard.toolwindow.file.LibraryDependencyFinder
4+
import com.github.cnrture.quickprojectwizard.common.file.FileWriter
5+
import com.github.cnrture.quickprojectwizard.common.file.ImportAnalyzer
6+
import com.github.cnrture.quickprojectwizard.common.file.LibraryDependencyFinder
77
import com.intellij.openapi.application.ApplicationManager
88
import com.intellij.openapi.externalSystem.model.ProjectSystemId
99
import com.intellij.openapi.externalSystem.service.execution.ProgressExecutionMode

src/main/kotlin/com/github/cnrture/quickprojectwizard/toolwindow/file/File.kt renamed to src/main/kotlin/com/github/cnrture/quickprojectwizard/common/file/File.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.github.cnrture.quickprojectwizard.toolwindow.file
1+
package com.github.cnrture.quickprojectwizard.common.file
22

33
interface File {
44
val name: String

src/main/kotlin/com/github/cnrture/quickprojectwizard/toolwindow/file/FileTree.kt renamed to src/main/kotlin/com/github/cnrture/quickprojectwizard/common/file/FileTree.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.github.cnrture.quickprojectwizard.toolwindow.file
1+
package com.github.cnrture.quickprojectwizard.common.file
22

33
import androidx.compose.runtime.getValue
44
import androidx.compose.runtime.mutableStateOf

src/main/kotlin/com/github/cnrture/quickprojectwizard/toolwindow/file/FileWriter.kt renamed to src/main/kotlin/com/github/cnrture/quickprojectwizard/common/file/FileWriter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.github.cnrture.quickprojectwizard.toolwindow.file
1+
package com.github.cnrture.quickprojectwizard.common.file
22

33
import com.github.cnrture.quickprojectwizard.common.Constants
44
import com.github.cnrture.quickprojectwizard.data.SettingsService

src/main/kotlin/com/github/cnrture/quickprojectwizard/toolwindow/file/ImportAnalyzer.kt renamed to src/main/kotlin/com/github/cnrture/quickprojectwizard/common/file/ImportAnalyzer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.github.cnrture.quickprojectwizard.toolwindow.file
1+
package com.github.cnrture.quickprojectwizard.common.file
22

33
import com.github.cnrture.quickprojectwizard.common.Constants
44
import java.io.File

src/main/kotlin/com/github/cnrture/quickprojectwizard/toolwindow/file/LibraryDependencyFinder.kt renamed to src/main/kotlin/com/github/cnrture/quickprojectwizard/common/file/LibraryDependencyFinder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.github.cnrture.quickprojectwizard.toolwindow.file
1+
package com.github.cnrture.quickprojectwizard.common.file
22

33
import com.github.cnrture.quickprojectwizard.common.Constants
44
import java.io.File

src/main/kotlin/com/github/cnrture/quickprojectwizard/components/QPWFileTree.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ import androidx.compose.ui.text.style.TextOverflow
2727
import androidx.compose.ui.unit.Dp
2828
import androidx.compose.ui.unit.dp
2929
import androidx.compose.ui.unit.sp
30-
import com.github.cnrture.quickprojectwizard.toolwindow.file.ExpandableFile
31-
import com.github.cnrture.quickprojectwizard.toolwindow.file.FileTree
30+
import com.github.cnrture.quickprojectwizard.common.file.ExpandableFile
31+
import com.github.cnrture.quickprojectwizard.common.file.FileTree
3232
import com.github.cnrture.quickprojectwizard.theme.QPWTheme
3333

3434
@Composable

src/main/kotlin/com/github/cnrture/quickprojectwizard/dialog/FeatureMakerDialogWrapper.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import com.github.cnrture.quickprojectwizard.common.rootDirectoryString
2020
import com.github.cnrture.quickprojectwizard.common.rootDirectoryStringDropLast
2121
import com.github.cnrture.quickprojectwizard.common.toProjectFile
2222
import com.github.cnrture.quickprojectwizard.components.*
23-
import com.github.cnrture.quickprojectwizard.toolwindow.file.FileTree
24-
import com.github.cnrture.quickprojectwizard.toolwindow.file.FileWriter
23+
import com.github.cnrture.quickprojectwizard.common.file.FileTree
24+
import com.github.cnrture.quickprojectwizard.common.file.FileWriter
2525
import com.github.cnrture.quickprojectwizard.theme.QPWTheme
2626
import com.intellij.openapi.project.Project
2727
import com.intellij.openapi.vfs.VirtualFile

src/main/kotlin/com/github/cnrture/quickprojectwizard/dialog/ModuleMakerDialogWrapper.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ import com.github.cnrture.quickprojectwizard.common.*
2121
import com.github.cnrture.quickprojectwizard.components.*
2222
import com.github.cnrture.quickprojectwizard.data.SettingsService
2323
import com.github.cnrture.quickprojectwizard.theme.QPWTheme
24-
import com.github.cnrture.quickprojectwizard.toolwindow.file.FileTree
25-
import com.github.cnrture.quickprojectwizard.toolwindow.file.FileWriter
26-
import com.github.cnrture.quickprojectwizard.toolwindow.file.ImportAnalyzer
27-
import com.github.cnrture.quickprojectwizard.toolwindow.file.LibraryDependencyFinder
24+
import com.github.cnrture.quickprojectwizard.common.file.FileTree
25+
import com.github.cnrture.quickprojectwizard.common.file.FileWriter
26+
import com.github.cnrture.quickprojectwizard.common.file.ImportAnalyzer
27+
import com.github.cnrture.quickprojectwizard.common.file.LibraryDependencyFinder
2828
import com.intellij.openapi.application.ApplicationManager
2929
import com.intellij.openapi.components.service
3030
import com.intellij.openapi.externalSystem.model.ProjectSystemId

0 commit comments

Comments
 (0)