Skip to content

Commit

Permalink
chore: PatchesToolWindow can work without index
Browse files Browse the repository at this point in the history
MC-XiaoHei committed Jul 11, 2024
1 parent 21033f8 commit 7e8b74e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@ package cn.xor7.xiaohei.leavesknife.toolWindow
import cn.xor7.xiaohei.leavesknife.services.PatchType
import cn.xor7.xiaohei.leavesknife.services.leavesknifeStoreService
import com.intellij.openapi.application.runInEdt
import com.intellij.openapi.project.DumbAware
import com.intellij.openapi.project.Project
import com.intellij.openapi.ui.SimpleToolWindowPanel
import com.intellij.openapi.wm.ToolWindow
@@ -15,7 +16,7 @@ import com.intellij.ui.treeStructure.Tree
import javax.swing.tree.DefaultMutableTreeNode
import javax.swing.tree.DefaultTreeModel

class PatchesToolWindowFactory : ToolWindowFactory {
class PatchesToolWindowFactory : ToolWindowFactory, DumbAware {
override fun createToolWindowContent(project: Project, toolWindow: ToolWindow) {
val serverPatchesToolWindow = ServerPatchesToolWindow(toolWindow)
val content = ContentFactory.getInstance().createContent(

0 comments on commit 7e8b74e

Please sign in to comment.