Skip to content

Commit

Permalink
Clean up preparation for Java code generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Dekola committed Dec 3, 2024
1 parent 1dab31e commit ae8c210
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 11 deletions.
Binary file modified .DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,4 @@ object ClassCreator {
return newSubdirectory
}




}
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,10 @@ import com.intellij.psi.PsiDirectory
import com.intellij.psi.PsiManager
import com.intellij.util.ui.JBUI
import java.awt.Dimension
import java.awt.FlowLayout
import java.awt.GridBagConstraints
import java.awt.GridBagLayout
import java.awt.Insets
import javax.swing.Box
import javax.swing.ButtonGroup
import javax.swing.JButton
import javax.swing.JComponent
import javax.swing.JLabel
import javax.swing.JPanel
Expand All @@ -30,8 +27,8 @@ class CleanArchitectureTemplateName(
private lateinit var panel: JPanel

private val featureNameTextField: JTextField = JTextField()
private val responseNameTextField: JTextField = JTextField()
private val bodyNameTextField: JTextField = JTextField()
// private val responseNameTextField: JTextField = JTextField()
// private val bodyNameTextField: JTextField = JTextField()

private val javaRadioButton: JRadioButton = JRadioButton("Java")
private val flutterRadioButton: JRadioButton = JRadioButton("Flutter")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ object CodeGeneratorClass {
val featureNameLowerCase = featureName!!.replaceFirstChar { it.lowercase() }
val featureNameUpperCase = featureName.replaceFirstChar { it.uppercase() }


return when (selectedLanguage) {
when (selectedLanguage) {
LanguageSelection.JAVA -> {
return """package ${packageName}.${featureNameLowerCase}.ui
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class CreateCleanArchitectureTemplate : AnAction() {
println("Selected directory: ${selectedFile.toNioPath()}")
println("Selected directory: ${selectedFile.presentableUrl}")
println("Selected directory: $selectedFile")
CleanArchitectureTemplateName(event, selectedFile).show()
.CleanArchitectureTemplateName(event, selectedFile).show()
// Implement the logic you want to perform on the selected directory
} else {
// Handle cases where the selection is not a directory
Expand Down

0 comments on commit ae8c210

Please sign in to comment.