-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(intellij): implemented support for highlightning embedded argume…
…nts, escape sequences, python expressions and so on
- Loading branch information
Showing
19 changed files
with
251 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
...t/src/main/kotlin/dev/robotcode/robotcode4ij/execution/RobotCodeRunConfigurationEditor.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package dev.robotcode.robotcode4ij.execution | ||
|
||
import com.intellij.execution.configuration.EnvironmentVariablesComponent | ||
import com.intellij.util.ui.ComponentWithEmptyText | ||
import com.intellij.ui.RawCommandLineEditor | ||
import com.intellij.openapi.options.SettingsEditor | ||
import com.intellij.ui.dsl.builder.AlignX | ||
import com.intellij.ui.dsl.builder.panel | ||
import javax.swing.JComponent | ||
|
||
class RobotCodeRunConfigurationEditor : SettingsEditor<RobotCodeRunConfiguration>() { | ||
|
||
private val environmentVariablesField = EnvironmentVariablesComponent() | ||
|
||
private val argumentsField = | ||
RawCommandLineEditor().apply { | ||
if (textField is ComponentWithEmptyText) { | ||
(textField as ComponentWithEmptyText).emptyText.text = | ||
"Additional flags, e.g. --skip-cache, or --parallel=2" | ||
} | ||
} | ||
|
||
override fun resetEditorFrom(s: RobotCodeRunConfiguration) { | ||
// TODO("Not yet implemented") | ||
} | ||
|
||
override fun applyEditorTo(s: RobotCodeRunConfiguration) { | ||
// TODO("Not yet implemented") | ||
} | ||
|
||
override fun createEditor(): JComponent { | ||
return panel { | ||
row("&Robot:") { | ||
textField().label("Suite:") | ||
} | ||
row(environmentVariablesField.label) { | ||
cell(environmentVariablesField.component).align(AlignX.FILL) | ||
} | ||
row("A&rguments:") { cell(argumentsField).align(AlignX.FILL) } | ||
} | ||
} | ||
|
||
} |
21 changes: 6 additions & 15 deletions
21
...j-client/src/main/kotlin/dev/robotcode/robotcode4ij/execution/RobotCodeRunProfileState.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.