mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-252464 - Run Targets: allow before run validation for run targets and language runtimes
- address minor comments from IDEA-CR-68098: avoid swing allusions in names GitOrigin-RevId: f2b2e91e0c025d84d843d519149b51d15e470a8b
This commit is contained in:
committed by
intellij-monorepo-bot
parent
348cc850e3
commit
f3d6504e5f
@@ -105,7 +105,7 @@ public class RunOnTargetComboBox extends ComboBox<RunOnTargetComboBox.Item> {
|
||||
boolean hasErrors = false;
|
||||
if (selected instanceof Target) {
|
||||
Target target = (Target)selected;
|
||||
target.revalidate();
|
||||
target.revalidateConfiguration();
|
||||
hasErrors = target.hasErrors();
|
||||
}
|
||||
putClientProperty("JComponent.outline", hasErrors ? "error" : null);
|
||||
@@ -143,10 +143,10 @@ public class RunOnTargetComboBox extends ComboBox<RunOnTargetComboBox.Item> {
|
||||
private Target(TargetEnvironmentConfiguration config) {
|
||||
super(config.getDisplayName(), TargetEnvironmentConfigurationKt.getTargetType(config).getIcon());
|
||||
myConfig = config;
|
||||
revalidate();
|
||||
revalidateConfiguration();
|
||||
}
|
||||
|
||||
public void revalidate() {
|
||||
public void revalidateConfiguration() {
|
||||
try {
|
||||
myConfig.validateConfiguration();
|
||||
myValidationInfo = null;
|
||||
|
||||
Reference in New Issue
Block a user