File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
core/src/main/kotlin/cc/unitmesh/devti/sketch/ui/patch Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -129,23 +129,6 @@ class SingleFileDiffSketch(
129
129
}
130
130
131
131
private fun createActionButtons (): List <JButton > {
132
- // val undoManager = UndoManager.getInstance(myProject)
133
- // val fileEditor = FileEditorManager.getInstance(myProject).getSelectedEditor(currentFile)
134
-
135
- // val rollback = JButton("Undo").apply {
136
- // icon = AllIcons.Actions.Rollback
137
- // toolTipText = AutoDevBundle.message("sketch.patch.action.rollback.tooltip")
138
- // isEnabled = undoManager.isUndoAvailable(fileEditor)
139
- //
140
- // addMouseListener(object : MouseAdapter() {
141
- // override fun mouseClicked(e: MouseEvent?) {
142
- // if (undoManager.isUndoAvailable(fileEditor)) {
143
- // undoManager.undo(fileEditor)
144
- // }
145
- // }
146
- // })
147
- // }
148
-
149
132
val viewButton = JButton (" View" ).apply {
150
133
icon = AllIcons .Actions .ListChanges
151
134
toolTipText = AutoDevBundle .message(" sketch.patch.action.viewDiff.tooltip" )
You can’t perform that action at this time.
0 commit comments