Skip to content

Commit e4ce809

Browse files
committed
chore: support old ide versions
1 parent 09f107d commit e4ce809

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@ import com.intellij.openapi.actionSystem.ActionUpdateThread
1313
import com.intellij.openapi.actionSystem.AnAction
1414
import com.intellij.openapi.actionSystem.AnActionEvent
1515
import com.intellij.openapi.actionSystem.DefaultActionGroup
16-
import com.intellij.openapi.application.ApplicationManager
1716
import com.intellij.openapi.command.WriteCommandAction
1817
import com.intellij.openapi.editor.EditorFactory
1918
import com.intellij.openapi.editor.ex.EditorEx
20-
import com.intellij.openapi.editor.highlighter.EditorHighlighterFactory
2119
import com.intellij.openapi.fileChooser.FileChooser
2220
import com.intellij.openapi.fileChooser.FileChooserDescriptorFactory
2321
import com.intellij.openapi.fileEditor.FileEditorManager
@@ -58,20 +56,12 @@ class OpcodesTerminalPanel(
5856
isCaretRowShown = true
5957
isBlockCursor = false
6058
isLineMarkerAreaShown = true
61-
isHighlightSelectionOccurrences = true
6259
isAutoCodeFoldingEnabled = true
6360
isSmartHome = true
6461
isShowIntentionBulb = true
6562
}
6663

6764
editor.setCaretEnabled(true)
68-
69-
ApplicationManager.getApplication().runReadAction {
70-
val highlighter = EditorHighlighterFactory.getInstance()
71-
.createEditorHighlighter(project, PHPOpFileType.INSTANCE)
72-
73-
editor.highlighter = highlighter
74-
}
7565
}
7666

7767
private fun createToolBar() {

0 commit comments

Comments
 (0)