Skip to content

Commit

Permalink
Merge branch 'Feature/156-Add-the-scope-to-the-Run-Configuration' of h…
Browse files Browse the repository at this point in the history
…ttps://github.com/amosproj/amos2023ws02-pitest-ide-plugin into Feature/156-Add-the-scope-to-the-Run-Configuration
  • Loading branch information
Liam Fogarty committed Jan 23, 2024
2 parents c574141 + ea15415 commit c631f37
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,4 @@ class RunConfigurationOptions : RunConfigurationOptions() {
set(value) {
gradleExecutableOption.setValue(this, value)
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,17 @@ class SettingsEditor : SettingsEditor<RunConfiguration>() {
.addLabeledComponent("Gradle task", gradleTaskField)
.addLabeledComponent("Gradle script", gradleExecutableField)
.addLabeledComponent("Target classes", targetClasses)
.addLabeledComponent("", label)
.addLabeledComponent("", getScopeTipMessage())
.panel
}

private fun getScopeTipMessage(): JLabel {
val multilineText = "<html>The scope should be given as a comma-separated list (no spaces!) of the fully qualified names<br>of the desired classes to test.</html>"
val scopeTipMessage = JLabel(multilineText)
scopeTipMessage.font = Font(UIUtil.getLabelFont().name, UIUtil.getLabelFont().style, 12)
return scopeTipMessage
}

override fun resetEditorFrom(runConfiguration: RunConfiguration) {
targetClasses.text = runConfiguration.classFQN
gradleTaskField.text = runConfiguration.taskName
Expand Down

0 comments on commit c631f37

Please sign in to comment.