File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
core/src/main/kotlin/cc/unitmesh/devti/sketch/ui/code Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import cc.unitmesh.devti.AutoDevBundle
4
4
import cc.unitmesh.devti.AutoDevIcons
5
5
import cc.unitmesh.devti.AutoDevNotifications
6
6
import cc.unitmesh.devti.command.dataprovider.BuiltinCommand
7
+ import cc.unitmesh.devti.gui.snippet.AutoDevInsertCodeAction
7
8
import cc.unitmesh.devti.gui.snippet.AutoDevRunAction
8
9
import cc.unitmesh.devti.provider.BuildSystemProvider
9
10
import cc.unitmesh.devti.provider.RunService
@@ -159,8 +160,8 @@ open class CodeHighlightSketch(
159
160
border = JBUI .Borders .empty(2 )
160
161
161
162
val runAction =
162
- ActionManager .getInstance().getAction(" AutoDev.ToolWindow.Snippet.RunDevIns " ) as ? AutoDevRunAction
163
- ? : AutoDevRunAction ()
163
+ ActionManager .getInstance().getAction(" AutoDev.ToolWindow.Snippet.InsertCode " ) as ? AutoDevInsertCodeAction
164
+ ? : AutoDevInsertCodeAction ()
164
165
165
166
runButton = createRunButton(runAction)
166
167
@@ -209,12 +210,12 @@ open class CodeHighlightSketch(
209
210
updateRunButtonIcon()
210
211
}
211
212
212
- private fun createRunButton (runAction : AutoDevRunAction ): ActionButton {
213
+ private fun createRunButton (runAction : AutoDevInsertCodeAction ): ActionButton {
213
214
return ActionButton (
214
215
runAction,
215
216
runAction.templatePresentation.clone(),
216
217
" AutoDevToolbar" ,
217
- JBUI .size(22 , 22 )
218
+ JBUI .size(24 , 24 )
218
219
)
219
220
}
220
221
You can’t perform that action at this time.
0 commit comments