File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
clion-plugin/src/main/kotlin/org/utbot/cpp/clion/plugin/ui/wizard Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import org.utbot.cpp.clion.plugin.ui.wizard.steps.ConnectionStep
13
13
import org.utbot.cpp.clion.plugin.ui.wizard.steps.IntroStep
14
14
import org.utbot.cpp.clion.plugin.ui.wizard.steps.FinalStep
15
15
import org.utbot.cpp.clion.plugin.utils.getCurrentClient
16
+ import java.awt.event.KeyEvent
16
17
17
18
class UTBotWizard (private val project : Project ) : AbstractWizard<UTBotBaseWizardStep>(" UTBot: Quickstart" , project) {
18
19
// copy of settings to make changes during wizard steps
@@ -46,6 +47,15 @@ class UTBotWizard(private val project: Project) : AbstractWizard<UTBotBaseWizard
46
47
super .doOKAction()
47
48
}
48
49
50
+ override fun updateButtons (lastStep : Boolean , canGoNext : Boolean , firstStep : Boolean ) {
51
+ // set `ok` button's text on last step to `Finish` instead of `Create`
52
+ super .updateButtons(lastStep, canGoNext, firstStep)
53
+ if (lastStep) {
54
+ nextButton.text = " Finish"
55
+ nextButton.mnemonic = KeyEvent .getExtendedKeyCodeForChar(' F' .code)
56
+ }
57
+ }
58
+
49
59
override fun proceedToNextStep () {
50
60
if (currentStepObject?.canProceedToNextStep() != false ) {
51
61
super .proceedToNextStep()
You can’t perform that action at this time.
0 commit comments