Skip to content

Commit bcceecb

Browse files
committed
refactor(sketch): make processWriteCommand public and remove unused label update
1 parent d83a02e commit bcceecb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

core/src/main/kotlin/cc/unitmesh/devti/sketch/ui/code/CodeHighlightSketch.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,6 @@ open class CodeHighlightSketch(
337337
add(sketch)
338338
}
339339
}
340-
341-
editorFragment?.updateExpandCollapseLabel()
342340
}
343341

344342
override fun getComponent(): JComponent = this
@@ -374,7 +372,7 @@ open class CodeHighlightSketch(
374372
/**
375373
* Add Write Command Action
376374
*/
377-
private fun CodeHighlightSketch.processWriteCommand(currentText: String, fileName: String?) {
375+
fun CodeHighlightSketch.processWriteCommand(currentText: String, fileName: String?) {
378376
val button = JButton(AutoDevBundle.message("sketch.write.to.file"), AllIcons.Actions.MenuSaveall).apply {
379377
preferredSize = JBUI.size(120, 30)
380378

0 commit comments

Comments
 (0)