Skip to content

Commit

Permalink
合并拉取请求 #44
Browse files Browse the repository at this point in the history
2.0.5
  • Loading branch information
mdddj authored Aug 10, 2024
2 parents 5479c72 + a5bb28e commit 3c617bb
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/main/kotlin/shop/itbug/salvorstool/window/ApiScanWindow.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ import com.intellij.openapi.project.Project
import com.intellij.openapi.ui.popup.JBPopupFactory
import com.intellij.openapi.ui.popup.ListPopup
import com.intellij.openapi.wm.ToolWindow
import com.intellij.openapi.wm.ToolWindowManager
import com.intellij.openapi.wm.ex.ToolWindowManagerListener
import com.intellij.platform.ide.impl.statistic.ToolWindowStateListener
import com.intellij.ui.ColoredListCellRenderer
import com.intellij.ui.ColoredText
import com.intellij.ui.SearchTextField
Expand All @@ -36,7 +33,7 @@ import javax.swing.event.ListSelectionListener


class ApiScanWindow(private val myProject: Project, toolWindow: ToolWindow) : BorderLayoutPanel(),
ListSelectionListener,ToolWindowManagerListener {
ListSelectionListener {

private val list = JBList<SalvoApiItem>().apply {
this.border = BorderFactory.createEmptyBorder(0, 0, 0, 0)
Expand Down Expand Up @@ -81,15 +78,6 @@ class ApiScanWindow(private val myProject: Project, toolWindow: ToolWindow) : Bo

}

override fun stateChanged(
toolWindowManager: ToolWindowManager,
changeType: ToolWindowManagerListener.ToolWindowManagerEventType
) {
println(changeType)
super.stateChanged(toolWindowManager, changeType)
}



private fun listenChange() {
myProject.messageBus.connect().subscribe(ApiScanMessaging.TOPIC, object : ApiScanMessaging {
Expand Down

0 comments on commit 3c617bb

Please sign in to comment.