Skip to content

Commit c5dc8ce

Browse files
committed
feat: restructure
1 parent 813bf7d commit c5dc8ce

File tree

12 files changed

+37
-24
lines changed

12 files changed

+37
-24
lines changed

src/main/kotlin/com/github/xepozz/php_dump/actions/CreateTabAction.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.github.xepozz.php_dump.actions
22

3-
import com.github.xepozz.php_dump.panel.tabs.TabsUtil
3+
import com.github.xepozz.php_dump.toolWindow.tabs.TabsUtil
44
import com.intellij.icons.AllIcons
55
import com.intellij.openapi.actionSystem.AnAction
66
import com.intellij.openapi.actionSystem.AnActionEvent

src/main/kotlin/com/github/xepozz/php_dump/startup/ProjectFileEditorListener.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.github.xepozz.php_dump.startup
22

3-
import com.github.xepozz.php_dump.panel.RefreshType
4-
import com.github.xepozz.php_dump.panel.RefreshablePanel
3+
import com.github.xepozz.php_dump.toolWindow.panel.RefreshType
4+
import com.github.xepozz.php_dump.toolWindow.panel.RefreshablePanel
55
import com.intellij.openapi.fileEditor.FileEditorManagerEvent
66
import com.intellij.openapi.fileEditor.FileEditorManagerListener
77
import com.intellij.openapi.project.Project

src/main/kotlin/com/github/xepozz/php_dump/CompositeWindowFactory.kt renamed to src/main/kotlin/com/github/xepozz/php_dump/toolWindow/CompositeWindowFactory.kt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
package com.github.xepozz.php_dump
1+
package com.github.xepozz.php_dump.toolWindow
22

33
import com.github.xepozz.php_dump.actions.CreateTabAction
4-
import com.github.xepozz.php_dump.panel.OpcacheSettingsPanel
5-
import com.github.xepozz.php_dump.panel.OpcodesTerminalPanel
6-
import com.github.xepozz.php_dump.panel.TokenTreePanel
7-
import com.github.xepozz.php_dump.panel.TokensTerminalPanel
8-
import com.github.xepozz.php_dump.panel.tabs.CompositeWindowTabsState
9-
import com.github.xepozz.php_dump.panel.tabs.TabsUtil
4+
import com.github.xepozz.php_dump.toolWindow.panel.OpcacheSettingsPanel
5+
import com.github.xepozz.php_dump.toolWindow.panel.OpcodesTerminalPanel
6+
import com.github.xepozz.php_dump.toolWindow.panel.TokenTreePanel
7+
import com.github.xepozz.php_dump.toolWindow.panel.TokensTerminalPanel
8+
import com.github.xepozz.php_dump.toolWindow.tabs.CompositeWindowTabsState
9+
import com.github.xepozz.php_dump.toolWindow.tabs.TabsUtil
1010
import com.intellij.openapi.project.DumbAware
1111
import com.intellij.openapi.project.DumbService
1212
import com.intellij.openapi.project.Project
@@ -22,7 +22,7 @@ open class CompositeWindowFactory : ToolWindowFactory, DumbAware {
2222
val toolWindow = toolWindow as ToolWindowEx
2323
val contentFactory = ContentFactory.getInstance()
2424
val contentManager = toolWindow.contentManager as ContentManagerImpl
25-
println("can close: ${contentManager.canCloseContents()}")
25+
2626
val tabsState = CompositeWindowTabsState.getInstance(project)
2727

2828
val opcodesTerminalLayout = OpcodesTerminalPanel(project)
@@ -62,4 +62,4 @@ open class CompositeWindowFactory : ToolWindowFactory, DumbAware {
6262
toolWindow.setTabActions(CreateTabAction(project, contentManager))
6363
toolWindow.setDefaultContentUiType(ToolWindowContentUiType.COMBO)
6464
}
65-
}
65+
}

src/main/kotlin/com/github/xepozz/php_dump/panel/CustomTreePanel.kt renamed to src/main/kotlin/com/github/xepozz/php_dump/toolWindow/panel/CustomTreePanel.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
package com.github.xepozz.php_dump.panel
1+
package com.github.xepozz.php_dump.toolWindow.panel
22

33
import com.github.xepozz.php_dump.actions.CollapseTreeAction
44
import com.github.xepozz.php_dump.actions.ExpandTreeAction
55
import com.github.xepozz.php_dump.actions.OpenPhpSettingsAction
66
import com.github.xepozz.php_dump.actions.RefreshAction
7-
import com.github.xepozz.php_dump.panel.tabs.CompositeWindowTabsState
87
import com.github.xepozz.php_dump.services.CustomTreeDumperService
98
import com.github.xepozz.php_dump.stubs.token_object.TokensList
9+
import com.github.xepozz.php_dump.toolWindow.tabs.CompositeWindowTabsState
1010
import com.github.xepozz.php_dump.tree.RootNode
1111
import com.github.xepozz.php_dump.tree.TokenNode
1212
import com.github.xepozz.php_dump.tree.TokensTreeStructure
@@ -86,6 +86,7 @@ class CustomTreePanel(
8686
addSeparator()
8787
add(ExpandTreeAction(tree))
8888
add(CollapseTreeAction(tree))
89+
addSeparator()
8990
add(OpenPhpSettingsAction())
9091
}
9192

src/main/kotlin/com/github/xepozz/php_dump/panel/OpcacheSettingsPanel.kt renamed to src/main/kotlin/com/github/xepozz/php_dump/toolWindow/panel/OpcacheSettingsPanel.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.github.xepozz.php_dump.panel
1+
package com.github.xepozz.php_dump.toolWindow.panel
22

33
import com.github.xepozz.php_dump.actions.CollapseTreeAction
44
import com.github.xepozz.php_dump.actions.ExpandTreeAction
@@ -74,6 +74,7 @@ class OpcacheSettingsPanel(private val project: Project) :
7474
addSeparator()
7575
add(ExpandTreeAction(tree))
7676
add(CollapseTreeAction(tree))
77+
addSeparator()
7778
add(OpenPhpSettingsAction())
7879
}
7980

src/main/kotlin/com/github/xepozz/php_dump/panel/OpcodesTerminalPanel.kt renamed to src/main/kotlin/com/github/xepozz/php_dump/toolWindow/panel/OpcodesTerminalPanel.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.github.xepozz.php_dump.panel
1+
package com.github.xepozz.php_dump.toolWindow.panel
22

33
import com.github.xepozz.php_dump.PhpDumpIcons
44
import com.github.xepozz.php_dump.actions.OpenPhpSettingsAction
@@ -136,6 +136,7 @@ class OpcodesTerminalPanel(
136136

137137
override fun getActionUpdateThread() = ActionUpdateThread.BGT
138138
})
139+
addSeparator()
139140
add(OpenPhpSettingsAction())
140141
}
141142

src/main/kotlin/com/github/xepozz/php_dump/panel/RefreshablePanel.kt renamed to src/main/kotlin/com/github/xepozz/php_dump/toolWindow/panel/RefreshablePanel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.github.xepozz.php_dump.panel
1+
package com.github.xepozz.php_dump.toolWindow.panel
22

33
import com.intellij.openapi.project.Project
44

src/main/kotlin/com/github/xepozz/php_dump/panel/TokenTreePanel.kt renamed to src/main/kotlin/com/github/xepozz/php_dump/toolWindow/panel/TokenTreePanel.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.github.xepozz.php_dump.panel
1+
package com.github.xepozz.php_dump.toolWindow.panel
22

33
import com.github.xepozz.php_dump.actions.CollapseTreeAction
44
import com.github.xepozz.php_dump.actions.ExpandTreeAction
@@ -82,6 +82,7 @@ class TokenTreePanel(private val project: Project) :
8282
addSeparator()
8383
add(ExpandTreeAction(tree))
8484
add(CollapseTreeAction(tree))
85+
addSeparator()
8586
add(OpenPhpSettingsAction())
8687
}
8788

src/main/kotlin/com/github/xepozz/php_dump/panel/TokensTerminalPanel.kt renamed to src/main/kotlin/com/github/xepozz/php_dump/toolWindow/panel/TokensTerminalPanel.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.github.xepozz.php_dump.panel
1+
package com.github.xepozz.php_dump.toolWindow.panel
22

33
import com.github.xepozz.php_dump.PhpDumpIcons
44
import com.github.xepozz.php_dump.actions.ClearConsoleViewAction
@@ -65,6 +65,7 @@ class TokensTerminalPanel(
6565
}
6666
}
6767
})
68+
addSeparator()
6869
add(OpenPhpSettingsAction())
6970
}
7071

src/main/kotlin/com/github/xepozz/php_dump/panel/tabs/CompositeWindowTabsState.kt renamed to src/main/kotlin/com/github/xepozz/php_dump/toolWindow/tabs/CompositeWindowTabsState.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.github.xepozz.php_dump.panel.tabs
1+
package com.github.xepozz.php_dump.toolWindow.tabs
22

33
import com.intellij.openapi.components.PersistentStateComponent
44
import com.intellij.openapi.components.Service

0 commit comments

Comments
 (0)